Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼7.02ms] Passed 4 tests
A check of server-side resources used by Inspector Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.28 | 46.18 ▲3.18 |
Dashboard /wp-admin | 3.59 ▲0.29 | 49.37 ▼2.07 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 49.98 ▼4.46 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 85.85 ▼22.40 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 39.67 ▲0.84 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Inspector Plugin: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.72 ▲0.36 | 1.83 ▲0.26 | 43.53 ▼0.77 |
Dashboard /wp-admin | 2,210 ▲33 | 5.51 ▼0.14 | 94.71 ▲5.84 | 78.09 ▲32.11 |
Posts /wp-admin/edit.php | 2,115 ▲18 | 1.97 ▼0.01 | 36.46 ▼3.79 | 36.19 ▼2.39 |
Add New Post /wp-admin/post-new.php | 1,554 ▲28 | 22.92 ▼0.28 | 694.76 ▲18.87 | 54.94 ▲0.29 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.15 ▲0.03 | 100.04 ▼9.08 | 68.18 ▲21.69 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- 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 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Inspector\\Models\\AbstractModel' not found in wp-content/plugins/inspector-monitoring/inspector-php/Models/Transaction.php:11
- > PHP Fatal error
Uncaught Error: Class 'Inspector\\Models\\AbstractModel' not found in wp-content/plugins/inspector-monitoring/inspector-php/Models/Span.php:9
- > PHP Fatal error
Uncaught Error: Class 'Inspector\\Transport\\AbstractApiTransport' not found in wp-content/plugins/inspector-monitoring/inspector-php/Transport/AsyncTransport.php:13
- > PHP Fatal error
Uncaught Error: Class 'Inspector\\Models\\Context\\AbstractContext' not found in wp-content/plugins/inspector-monitoring/inspector-php/Models/Context/ErrorContext.php:7
- > PHP Fatal error
Uncaught Error: Class 'Inspector\\Models\\Context\\AbstractContext' not found in wp-content/plugins/inspector-monitoring/inspector-php/Models/Context/Socket.php:7
- > PHP Fatal error
Uncaught Error: Class 'Inspector\\Inspector' not found in wp-content/plugins/inspector-monitoring/inspector-php/Wordpress/InspectorWordpressWrapper.php:9
- > PHP Fatal error
Uncaught Error: Class 'Inspector\\Models\\Context\\AbstractContext' not found in wp-content/plugins/inspector-monitoring/inspector-php/Models/Context/Http.php:7
- > PHP Fatal error
Uncaught Error: Class 'Inspector\\Models\\Context\\AbstractContext' not found in wp-content/plugins/inspector-monitoring/inspector-php/Models/Context/Url.php:7
- > PHP Fatal error
Uncaught Error: Class 'Inspector\\Models\\Context\\AbstractContext' not found in wp-content/plugins/inspector-monitoring/inspector-php/Models/Context/Request.php:7
- > PHP Fatal error
Uncaught Error: Class 'Inspector\\Transport\\AbstractApiTransport' not found in wp-content/plugins/inspector-monitoring/inspector-php/Transport/CurlTransport.php:9
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
4 plugin tags: inspector plugins, inspector real time monitoring, real time monitoring, error detection
inspector-monitoring/inspector.php 85% from 13 tests
The main file in "Inspector Plugin" v. 1.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("inspector-monitoring.php" instead of "inspector.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,579 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 433 | 710 | 1,579 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 5.19 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 3 | 11.54% |
▷ Concrete classes | 23 | 88.46% |
▷ Final classes | 0 | 0.00% |
Methods | 182 | |
▷ Static methods | 4 | 2.20% |
▷ Public methods | 172 | 94.51% |
▷ Protected methods | 8 | 4.40% |
▷ Private methods | 2 | 1.10% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 11 | 100.00% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.14MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/menu_icon_colored.png | 0.38KB | 0.38KB | ▼ 0.52% |
assets/icon-256x256.png | 6.83KB | 2.85KB | ▼ 58.32% |
assets/icon-128x128.png | 3.23KB | 1.77KB | ▼ 45.11% |
assets/banner-1544x500.png | 52.45KB | 20.92KB | ▼ 60.11% |
assets/images/logo-horizontal.png | 16.71KB | 6.94KB | ▼ 58.47% |