Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▼1.79MB] [CPU: ▼53.93ms] Passed 4 tests
Server-side resources used by M Similar Posts
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.26 | 6.01 ▼32.21 |
Dashboard /wp-admin | 2.23 ▼1.12 | 11.21 ▼47.28 |
Posts /wp-admin/edit.php | 2.23 ▼1.13 | 8.70 ▼42.15 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.66 | 9.11 ▼94.06 |
Media Library /wp-admin/upload.php | 2.23 ▼1.00 | 8.36 ▼26.00 |
Server storage [IO: ▲0.32MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_magadanski_similar_posts_widget |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for M Similar Posts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.33 ▲0.05 | 1.86 ▲0.37 | 43.57 ▲1.80 |
Dashboard /wp-admin | 2,202 ▲22 | 5.58 ▼0.08 | 89.23 ▲1.63 | 38.37 ▼4.38 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.09 | 40.41 ▲2.40 | 35.74 ▼2.33 |
Add New Post /wp-admin/post-new.php | 6,369 ▲4,832 | 27.78 ▲9.36 | 903.63 ▲259.47 | 69.96 ▲1.40 |
Media Library /wp-admin/upload.php | 1,398 ▼5 | 4.12 ▼0.05 | 95.09 ▲0.42 | 41.21 ▼2.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the msp-block handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_magadanski_similar_posts_widget
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means 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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/magadanski-similar-posts/Magadanski_Similar_Posts_Widget.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/magadanski-similar-posts/Magadanski_Similar_Posts_Widget.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: posts, category, similar
magadanski-similar-posts/magadanski-similar-posts.php Passed 13 tests
The primary PHP file in "M Similar Posts" version 1.3.4 is used by WordPress to initiate all plugin functionality
63 characters long description:
Shows similar posts ordered by the number of common categories.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin7,659 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 3 | 0 | 0 | 6,918 |
PHP | 3 | 109 | 282 | 367 |
PO File | 3 | 60 | 69 | 184 |
JavaScript | 5 | 26 | 0 | 174 |
CSS | 2 | 4 | 0 | 16 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 2.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 1 | 4.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo@2x.png | 1.34KB | 0.53KB | ▼ 60.39% |
img/logo.png | 1.20KB | 0.36KB | ▼ 69.80% |