Benchmarks
Plugin footprint 82% 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 gracefully, with no errors
Server metrics [RAM: ▲0.75MB] [CPU: ▲6.07ms] 75% from 4 tests
Analyzing server-side resources used by YARPP - Yet Another Related Posts Plugin
Please take the time to fix the following items
- CPU: Total CPU usage should be kept under 500.00ms (currently 646.06ms on /wp-admin/options-general.php?page=yarpp)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.13 ▲0.66 | 48.96 ▲7.73 |
Dashboard /wp-admin | 4.09 ▲0.74 | 57.51 ▼4.79 |
Posts /wp-admin/edit.php | 4.21 ▲0.85 | 58.53 ▲13.23 |
Add New Post /wp-admin/post-new.php | 6.70 ▲0.81 | 105.52 ▲10.02 |
Media Library /wp-admin/upload.php | 4.02 ▲0.78 | 47.74 ▲11.32 |
YARPP /wp-admin/options-general.php?page=yarpp | 4.37 | 646.06 |
Server storage [IO: ▲2.28MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 196 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_yarpp_related_cache |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
can_compress_scripts |
yarpp_pro |
widget_theysaidso_widget |
widget_yarpp_widget |
yarpp_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for YARPP - Yet Another Related Posts Plugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,794 ▲7 | 14.22 ▼0.12 | 1.72 ▼0.18 | 43.93 ▲1.57 |
Dashboard /wp-admin | 2,199 ▲19 | 5.56 ▼0.09 | 96.82 ▼2.09 | 42.20 ▼2.87 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.07 | 38.95 ▲1.34 | 35.33 ▼1.43 |
Add New Post /wp-admin/post-new.php | 6,453 ▲4,927 | 27.52 ▲3.94 | 997.50 ▲363.69 | 48.67 ▲0.76 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.26 ▲0.10 | 95.40 ▼0.96 | 40.68 ▼1.18 |
YARPP /wp-admin/options-general.php?page=yarpp | 3,567 | 5.45 | 158.56 | 67.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/yet-another-related-posts-plugin/includes/optin_notice.js.php
- > /wp-content/plugins/yet-another-related-posts-plugin/yarpp.php
- 35× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to a member function has_fulltext_db_error() on null in wp-content/plugins/yet-another-related-posts-plugin/includes/yarpp_myisam_notice.php:6
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/yet-another-related-posts-plugin/includes/template_builtin.php:22
- > PHP Fatal error
Uncaught Error: Class 'YARPP_Cache' not found in wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Cache_Demo_Bypass.php:8
- > PHP Fatal error
Uncaught Error: Class 'YARPP_Meta_Box' not found in wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Meta_Box_Relatedness.php:3
- > PHP Fatal error
Uncaught Error: Class 'YARPP_Cache' not found in wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Cache_Tables.php:3
- > PHP Fatal error
Uncaught Error: Call to a member function enforce() on null in wp-content/plugins/yet-another-related-posts-plugin/includes/template_metabox.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/yet-another-related-posts-plugin/includes/yarpp_pro_options.php:13
- > PHP Notice
Trying to get property 'cache' of non-object in wp-content/plugins/yet-another-related-posts-plugin/includes/template_metabox.php on line 4
- > PHP Notice
Trying to get property 'db_options' of non-object in wp-content/plugins/yet-another-related-posts-plugin/includes/yarpp_myisam_notice.php on line 6
- > PHP Fatal error
Uncaught Error: Class 'YARPP_Meta_Box' not found in wp-content/plugins/yet-another-related-posts-plugin/classes/YARPP_Meta_Box_Contact.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% 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
9 plugin tags: similar posts, posts, seo, multilingual, thumbnails...
yet-another-related-posts-plugin/yarpp.php 92% from 13 tests
Analyzing the main PHP file in "YARPP - Yet Another Related Posts Plugin" version 5.30.9
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("yet-another-related-posts-plugin.php" instead of "yarpp.php")
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
Good job! No executable or dangerous file extensions detected18,925 lines of code in 137 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 43 | 4,281 | 10,241 | 10,563 |
PHP | 69 | 1,103 | 1,597 | 6,028 |
JavaScript | 10 | 146 | 60 | 1,262 |
CSS | 13 | 222 | 43 | 1,024 |
SVG | 2 | 0 | 0 | 48 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 34.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 284.00 |
Average method complexity | 3.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 287 | |
▷ Static methods | 3 | 1.05% |
▷ Public methods | 253 | 88.15% |
▷ Protected methods | 18 | 6.27% |
▷ Private methods | 16 | 5.57% |
Functions | 29 | |
▷ Named functions | 26 | 89.66% |
▷ Anonymous functions | 3 | 10.34% |
Constants | 29 | |
▷ Global constants | 16 | 55.17% |
▷ Class constants | 13 | 44.83% |
▷ Public constants | 13 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
12 PNG files occupy 0.19MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/sprites.png | 5.57KB | 2.41KB | ▼ 56.70% |
sprites-2x.png | 16.69KB | 5.02KB | ▼ 69.91% |
images/default.png | 56.52KB | 8.98KB | ▼ 84.11% |
sprites.png | 5.57KB | 2.41KB | ▼ 56.70% |
images/preview_thumbnail_example.png | 3.08KB | 0.10KB | ▼ 96.63% |