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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.95 ▼3.61 |
Dashboard /wp-admin | 3.33 ▲0.02 | 46.69 ▼4.17 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.09 ▲3.44 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 79.78 ▼12.90 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,884 ▲138 | 14.19 ▼0.16 | 7.92 ▲6.20 | 42.83 ▼0.05 |
Dashboard /wp-admin | 2,206 ▲18 | 4.87 ▼1.20 | 97.32 ▼14.96 | 37.46 ▼4.23 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.02 | 39.22 ▲5.97 | 34.52 ▼2.10 |
Add New Post /wp-admin/post-new.php | 1,532 ▲13 | 23.28 ▲0.05 | 677.91 ▲9.98 | 54.78 ▼8.20 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.22 ▼0.01 | 98.11 ▼1.45 | 42.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
- > PHP Fatal error
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 4 | 36 | 445 |
JavaScript | 1 | 0 | 3 | 155 |
PHP | 1 | 24 | 17 | 151 |
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 code | 0.17 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sort_asc.png | 0.16KB | 0.25KB | 0.00% |
images/sort_both.png | 0.20KB | 0.29KB | 0.00% |