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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼7.80ms] Passed 4 tests
Analyzing server-side resources used by Related Posts Thumbnails Plugin for WordPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 42.20 ▼2.67 |
Dashboard /wp-admin | 3.34 ▼0.01 | 44.38 ▼15.40 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 41.49 ▼6.28 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 85.07 ▼6.85 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.11 ▲4.01 |
Server storage [IO: ▲0.50MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
rpt_active_time |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_relatedpoststhumbnailswidget |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Related Posts Thumbnails Plugin for WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲64 | 14.24 ▲0.10 | 1.74 ▲0.06 | 43.44 ▲0.87 |
Dashboard /wp-admin | 2,211 ▲33 | 5.61 ▼0.01 | 92.58 ▼11.66 | 37.56 ▼1.86 |
Posts /wp-admin/edit.php | 2,119 ▲16 | 1.96 ▼0.01 | 39.35 ▼1.52 | 34.83 ▲0.42 |
Add New Post /wp-admin/post-new.php | 6,209 ▲4,683 | 19.20 ▼4.31 | 908.24 ▲196.38 | 51.92 ▼7.09 |
Media Library /wp-admin/upload.php | 1,407 ▲13 | 4.15 ▼0.07 | 98.94 ▼9.29 | 42.36 ▼4.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_relatedpoststhumbnailswidget
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- rpt_active_time
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 | 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
Almost there! Just fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/related-posts-thumbnails/inc/rpt-widget.php:17
- > PHP Notice
Undefined variable: product_slug in wp-content/plugins/related-posts-thumbnails/lib/wpb-sdk/views/wpb-sdk-deactivate-form.php on line 103
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/related-posts-thumbnails/related-posts-thumbnails.php:276
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/related-posts-thumbnails/inc/rpt-settings.php:220
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/related-posts-thumbnails/lib/wpb-sdk/views/wpb-sdk-deactivate-form.php:109
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/related-posts-thumbnails/inc/rpt-blocks.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #2, #3 in related-posts-thumbnails/assets to your readme.txt
related-posts-thumbnails/related-posts-thumbnails.php Passed 13 tests
Analyzing the main PHP file in "Related Posts Thumbnails Plugin for WordPress" version 3.0.1
49 characters long description:
Showing related posts thumbnails under the posts.
Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin5,515 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 481 | 526 | 2,442 |
CSS | 4 | 59 | 46 | 1,464 |
PO File | 6 | 381 | 2,016 | 866 |
JavaScript | 4 | 117 | 299 | 646 |
SVG | 3 | 0 | 0 | 97 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Method cyclomatic complexity should be reduced to less than 100 (currently 115)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 57.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 179.00 |
Average method complexity | 6.02 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 115.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 9 | 20.00% |
▷ Public methods | 39 | 86.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 13.33% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/chosen-sprite@2x.png | 0.72KB | 0.83KB | 0.00% |
assets/images/icons.png | 12.69KB | 5.00KB | ▼ 60.61% |
assets/css/chosen-sprite.png | 0.53KB | 0.88KB | 0.00% |
img/default.png | 4.47KB | 2.35KB | ▼ 47.52% |
assets/css/chosen-sprite@2x.png | 0.53KB | 0.88KB | 0.00% |