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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼0.44ms] Passed 4 tests
This is a short check of server-side resources used by Gou Manage Related Posts | Similar Posts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.11 | 38.85 ▼2.22 |
Dashboard /wp-admin | 3.41 ▲0.10 | 47.97 ▼2.19 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.14 ▲1.15 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 97.16 ▲6.44 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.77 ▲1.49 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Gou Manage Related Posts | Similar Posts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 14.25 ▼0.37 | 1.81 ▲0.11 | 42.44 ▼0.21 |
Dashboard /wp-admin | 2,211 ▲34 | 5.64 ▲0.05 | 91.33 ▲0.96 | 42.59 ▼1.54 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 2.01 ▲0.05 | 39.35 ▲5.18 | 35.69 ▲6.80 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 18.63 ▼4.81 | 588.87 ▼133.92 | 61.77 ▲6.71 |
Media Library /wp-admin/upload.php | 1,419 ▲19 | 4.16 ▲0.03 | 93.24 ▼9.24 | 45.90 ▼0.41 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/gou-manage-related-posts-similar-posts/admin/grp-need-help-popup.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/gou-manage-related-posts-similar-posts/admin/grp-admin-setting-forms.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gou-manage-related-posts-similar-posts/admin/grp-admin-general-settings.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gou-manage-related-posts-similar-posts/gou-related-posts.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/gou-manage-related-posts-similar-posts/admin/grp-admin-configuration-settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
7 plugin tags: related, similar posts, related posts, posts, related post...
gou-manage-related-posts-similar-posts/gou-related-posts.php 77% from 13 tests
The main PHP script in "Gou Manage Related Posts | Similar Posts" version 3.7.9.3 is automatically included on every request by WordPress
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("gou-manage-related-posts-similar-posts.php" instead of "gou-related-posts.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 153 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,806 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 804 | 50 | 1,182 |
CSS | 2 | 108 | 12 | 456 |
JavaScript | 1 | 114 | 10 | 167 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 27 | |
▷ Static methods | 24 | 88.89% |
▷ Public methods | 24 | 88.89% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 11.11% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/x.png | 1.17KB | 1.10KB | ▼ 5.84% |
admin/images/ui-icons_222222_256x240.png | 6.86KB | 4.18KB | ▼ 39.05% |
images/x.png | 1.17KB | 1.10KB | ▼ 5.84% |