Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▲1.30ms] Passed 4 tests
Analyzing server-side resources used by InfiniteWP Client
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 43.51 ▲0.96 |
Dashboard /wp-admin | 3.54 ▲0.24 | 52.02 ▲2.35 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 56.93 ▲8.26 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 95.97 ▼2.81 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 41.11 ▲4.68 |
Server storage [IO: ▲7.72MB] [DB: ▲0.00MB] 67% from 3 tests
How much does this plugin use your filesystem and database?
Please fix the following
- Illegal file modification detected: 1 file (0.91KB) outside of "wp-content/plugins/iwp-client/" and "wp-content/uploads/"
- (new file) wp-content/mu-plugins/mu-iwp-client.php
Filesystem: 737 new files
Database: no new tables, 12 new options
New WordPress options |
---|
iwp_mu_plugin_version |
can_compress_scripts |
iwp_client_wp_version_old |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
manage-multiple-blogs |
iwp_client_all_themes_history |
... |
Browser metrics Passed 4 tests
Checking browser requirements for InfiniteWP Client
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲157 | 13.49 ▼0.90 | 1.59 ▼0.24 | 31.73 ▼15.95 |
Dashboard /wp-admin | 2,312 ▲124 | 5.28 ▲0.41 | 109.46 ▼1.78 | 45.15 ▲0.13 |
Posts /wp-admin/edit.php | 2,190 ▲98 | 2.52 ▲0.51 | 43.04 ▲1.08 | 36.84 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,678 ▲145 | 22.85 ▼0.42 | 653.90 ▼19.28 | 36.19 ▼16.72 |
Media Library /wp-admin/upload.php | 1,485 ▲97 | 4.56 ▲0.33 | 99.94 ▼15.50 | 44.29 ▼5.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 8 options in the database
- theysaidso_admin_options
- iwp_mu_plugin_version
- widget_recent-comments
- manage-multiple-blogs
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/iwp-client/debug-chart/index.php
- 509× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Guzzle\\Batch\\BatchTransferInterface' not found in wp-content/plugins/iwp-client/lib/amazon/guzzle/guzzle/src/Guzzle/Batch/BatchClosureTransfer.php:11
- > PHP Fatal error
Uncaught Error: Class 'Google_Service' not found in wp-content/plugins/iwp-client/lib/Google2/Service/Reports.php:32
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Common\\AbstractHasDispatcher' not found in wp-content/plugins/iwp-client/lib/amazon/guzzle/guzzle/src/Guzzle/Service/Resource/ResourceIteratorApplyBatched.php:16
- > PHP Fatal error
Uncaught Error: Class 'Aws\\S3\\Exception\\S3Exception' not found in wp-content/plugins/iwp-client/lib/amazon/aws/aws-sdk-php/src/Aws/S3/Exception/MissingSecurityElementException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Aws\\S3\\Exception\\S3Exception' not found in wp-content/plugins/iwp-client/lib/amazon/aws/aws-sdk-php/src/Aws/S3/Exception/RequestTimeTooSkewedException.php:22
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Http\\Message\\AbstractMessage' not found in wp-content/plugins/iwp-client/lib/amazon/guzzle/guzzle/src/Guzzle/Http/Message/Response.php:17
- > PHP Fatal error
Uncaught Error: Class 'Guzzle\\Common\\Exception\\RuntimeException' not found in wp-content/plugins/iwp-client/lib/amazon/guzzle/guzzle/src/Guzzle/Service/Exception/CommandException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Aws\\Common\\Model\\MultipartUpload\\AbstractTransferState' not found in wp-content/plugins/iwp-client/lib/amazon/aws/aws-sdk-php/src/Aws/S3/Model/MultipartUpload/TransferState.php:26
- > PHP Notice
Undefined index: iwp_mmb_plugin_dir in wp-content/plugins/iwp-client/lib/Google/Http/Request.php on line 18
- > PHP Notice
Undefined index: iwp_mmb_plugin_dir in wp-content/plugins/iwp-client/lib/S3compat.php on line 32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 26 tag instead of maximum 10
iwp-client/init.php 92% from 13 tests
The main PHP script in "InfiniteWP Client" version 1.12.3 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("iwp-client.php" instead of "init.php")
Code Analysis 95% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin126,399 lines of code in 721 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 698 | 21,294 | 50,845 | 124,344 |
Markdown | 11 | 345 | 0 | 1,425 |
JSON | 5 | 8 | 0 | 487 |
XML | 2 | 7 | 0 | 72 |
Ant | 1 | 10 | 1 | 34 |
YAML | 1 | 2 | 0 | 25 |
Perl | 1 | 4 | 1 | 8 |
CSS | 1 | 0 | 0 | 3 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code 0% from 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
- Cyclomatic complexity of classes has to be reduced to less than 1000 (currently 1,345)
- Method cyclomatic complexity should be reduced to less than 100 (currently 114)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.88 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1,345.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 114.00 |
Code structure | ||
---|---|---|
Namespaces | 73 | |
Interfaces | 73 | |
Traits | 0 | |
Classes | 1,064 | |
▷ Abstract classes | 44 | 4.14% |
▷ Concrete classes | 1,020 | 95.86% |
▷ Final classes | 3 | 0.29% |
Methods | 8,433 | |
▷ Static methods | 305 | 3.62% |
▷ Public methods | 7,888 | 93.54% |
▷ Protected methods | 308 | 3.65% |
▷ Private methods | 237 | 2.81% |
Functions | 264 | |
▷ Named functions | 221 | 83.71% |
▷ Anonymous functions | 43 | 16.29% |
Constants | 847 | |
▷ Global constants | 358 | 42.27% |
▷ Class constants | 489 | 57.73% |
▷ Public constants | 489 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin