10% subdomains-listing

Code Review | Subdomain Listing

WordPress plugin Subdomain Listing scored10%from 54 tests.

About plugin

  • Plugin page: subdomains-listing
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 22, 2016
  • Latest release: Nov 5, 2018
  • Number of updates: 8
  • Update frequency: every 93.0 days
  • Top authors: kksodha (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,027 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • The plugin did not install without errors
    • > Notice in wp-content/plugins/subdomains-listing/subdomains-list.php+33
    Undefined variable: wpdb

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.33ms] Passed 4 tests

An overview of server-side resources used by Subdomain Listing
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.95 ▼3.61
Dashboard /wp-admin3.33 ▲0.0246.69 ▼4.17
Posts /wp-admin/edit.php3.38 ▲0.0247.09 ▲3.44
Add New Post /wp-admin/post-new.php5.91 ▲0.0279.78 ▼12.90
Media Library /wp-admin/upload.php3.26 ▲0.0234.00 ▼0.62

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables
wp_subdomains
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Subdomain Listing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,884 ▲13814.19 ▼0.167.92 ▲6.2042.83 ▼0.05
Dashboard /wp-admin2,206 ▲184.87 ▼1.2097.32 ▼14.9637.46 ▼4.23
Posts /wp-admin/edit.php2,092 ▲32.01 ▼0.0239.22 ▲5.9734.52 ▼2.10
Add New Post /wp-admin/post-new.php1,532 ▲1323.28 ▲0.05677.91 ▲9.9854.78 ▼8.20
Media Library /wp-admin/upload.php1,388 ▲34.22 ▼0.0198.11 ▼1.4542.76 ▼1.24

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_subdomains
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/subdomains-listing/subdomains-list.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
  • Requires at least: Version not formatted correctly
The official readme.txt might help

subdomains-listing/subdomains-list.php 92% from 13 tests

The main file in "Subdomain Listing" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("subdomains-listing.php" instead of "subdomains-list.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin751 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1436445
JavaScript103155
PHP12417151

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/sort_asc.png0.16KB0.25KB0.00%
images/sort_both.png0.20KB0.29KB0.00%