Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼1.27ms] Passed 4 tests
A check of server-side resources used by WP Super Network
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.00 | 43.74 ▼3.77 |
Dashboard /wp-admin | 3.57 ▲0.00 | 53.44 ▲1.56 |
Posts /wp-admin/edit.php | 3.68 ▲0.00 | 51.61 ▼3.30 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.00 | 101.19 ▲2.11 |
Media Library /wp-admin/upload.php | 3.49 ▲0.00 | 37.75 ▲0.44 |
Server storage [IO: ▲0.78MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 199 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Super Network
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.26 ▼0.01 | 2.11 ▲0.30 | 41.33 ▼3.44 |
Dashboard /wp-admin | 2,195 ▲18 | 5.66 ▼0.09 | 91.84 ▲1.47 | 42.77 ▼0.14 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.03 ▲0.00 | 40.74 ▲1.93 | 34.62 ▼0.53 |
Add New Post /wp-admin/post-new.php | 1,545 ▲14 | 23.17 ▼0.20 | 616.71 ▼89.65 | 48.46 ▼2.12 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.19 ▼0.11 | 106.78 ▲2.60 | 41.69 ▼4.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 157× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPSQLParser\\processors\\AbstractProcessor' not found in wp-content/plugins/wp-super-network/vendor/greenlion/php-sql-parser/src/PHPSQLParser/processors/ColumnDefinitionProcessor.php:43
- > PHP Fatal error
Uncaught Error: Class 'PHPSQLParser\\processors\\AbstractProcessor' not found in wp-content/plugins/wp-super-network/vendor/greenlion/php-sql-parser/src/PHPSQLParser/processors/LimitProcessor.php:51
- > PHP Fatal error
Uncaught Error: Interface 'PHPSQLParser\\builders\\Builder' not found in wp-content/plugins/wp-super-network/vendor/greenlion/php-sql-parser/src/PHPSQLParser/builders/GroupByAliasBuilder.php:53
- > PHP Fatal error
Uncaught Error: Interface 'PHPSQLParser\\builders\\Builder' not found in wp-content/plugins/wp-super-network/vendor/greenlion/php-sql-parser/src/PHPSQLParser/builders/LimitBuilder.php:53
- > PHP Fatal error
Uncaught Error: Interface 'PHPSQLParser\\builders\\Builder' not found in wp-content/plugins/wp-super-network/vendor/greenlion/php-sql-parser/src/PHPSQLParser/builders/CreateBuilder.php:53
- > PHP Fatal error
Uncaught Error: Interface 'PHPSQLParser\\builders\\Builder' not found in wp-content/plugins/wp-super-network/vendor/greenlion/php-sql-parser/src/PHPSQLParser/builders/AliasBuilder.php:52
- > PHP Fatal error
Uncaught Error: Class 'PHPSQLParser\\builders\\WhereExpressionBuilder' not found in wp-content/plugins/wp-super-network/vendor/greenlion/php-sql-parser/src/PHPSQLParser/builders/OrderByExpressionBuilder.php:53
- > PHP Fatal error
Uncaught Error: Interface 'PHPSQLParser\\builders\\Builder' not found in wp-content/plugins/wp-super-network/vendor/greenlion/php-sql-parser/src/PHPSQLParser/builders/InsertBuilder.php:53
- > PHP Fatal error
Uncaught Error: Class 'PHPSQLParser\\processors\\AbstractProcessor' not found in wp-content/plugins/wp-super-network/vendor/greenlion/php-sql-parser/src/PHPSQLParser/processors/DefaultProcessor.php:51
- > PHP Fatal error
Uncaught Error: Interface 'PHPSQLParser\\builders\\Builder' not found in wp-content/plugins/wp-super-network/vendor/greenlion/php-sql-parser/src/PHPSQLParser/builders/SetBuilder.php:53
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
wp-super-network/wp-super-network.php 92% from 13 tests
Analyzing the main PHP file in "WP Super Network" version 1.2.0
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected11,105 lines of code in 196 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 194 | 2,506 | 8,882 | 11,019 |
JSON | 1 | 0 | 0 | 69 |
JavaScript | 1 | 4 | 0 | 17 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 160)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 11.68 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 160.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 160.00 |
Code structure | ||
---|---|---|
Namespaces | 10 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 185 | |
▷ Abstract classes | 1 | 0.54% |
▷ Concrete classes | 184 | 99.46% |
▷ Final classes | 1 | 0.54% |
Methods | 741 | |
▷ Static methods | 20 | 2.70% |
▷ Public methods | 344 | 46.42% |
▷ Protected methods | 383 | 51.69% |
▷ Private methods | 14 | 1.89% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.00% |
Constants | 89 | |
▷ Global constants | 2 | 2.25% |
▷ Class constants | 87 | 97.75% |
▷ Public constants | 87 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected