Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲0.83ms] Passed 4 tests
Analyzing server-side resources used by Same but Different - Related Posts by Taxonomy
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 45.04 ▲5.00 |
Dashboard /wp-admin | 3.37 ▲0.03 | 53.04 ▼5.89 |
Posts /wp-admin/edit.php | 3.42 ▲0.06 | 54.89 ▲2.94 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 99.26 ▲1.29 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.80 ▲9.17 |
Same but Different1 /wp-admin/themes.php?page=same-but-different_settings | 3.30 | 38.95 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
otb_new_theme |
otb_new_plugin |
same_but_different_version |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_otb_same_but_different_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Same but Different - Related Posts by Taxonomy
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,805 ▲58 | 14.34 ▲0.00 | 1.71 ▼0.09 | 38.02 ▼7.90 |
Dashboard /wp-admin | 2,208 ▲31 | 5.64 ▲0.06 | 91.37 ▼9.77 | 39.59 ▼3.31 |
Posts /wp-admin/edit.php | 2,113 ▲10 | 2.01 ▲0.04 | 40.34 ▼4.21 | 38.82 ▲3.38 |
Add New Post /wp-admin/post-new.php | 1,540 ▲4 | 23.19 ▼0.00 | 603.28 ▼73.30 | 53.03 ▼11.32 |
Media Library /wp-admin/upload.php | 1,416 ▲16 | 4.20 ▲0.01 | 98.09 ▼4.37 | 46.46 ▲3.32 |
Same but Different1 /wp-admin/themes.php?page=same-but-different_settings | 1,005 | 1.98 | 23.97 | 36.30 |
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
The following items require your attention
- Zombie WordPress options detected upon uninstall: 10 options
- widget_otb_same_but_different_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- otb_new_theme
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- otb_new_plugin
- same_but_different_version
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=same-but-different_settings
- > Warning in wp-content/plugins/same-but-different/library/classes/otb-same-but-different-admin-api.php+128
in_array() expects parameter 2 to be array, string given
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 8× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/same-but-different/library/template-parts/content-settings.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/same-but-different/library/classes/otb-same-but-different-widget.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/same-but-different/library/template-parts/content-plugins.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/same-but-different/library/template-parts/tabs.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function is_archive() in wp-content/plugins/same-but-different/library/includes/get-related-posts.php:4
- > PHP Notice
Undefined variable: posts in wp-content/plugins/same-but-different/library/template-parts/related-posts.php on line 3
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/same-but-different/library/template-parts/related-posts.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function update_option() in wp-content/plugins/same-but-different/library/template-parts/content-themes.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: similar posts, related articles, related posts, contextual related posts, related posts widget
same-but-different/same-but-different.php Passed 13 tests
The main file in "Same but Different - Related Posts by Taxonomy" v. 1.0.13 serves as a complement to information provided in readme.txt and as the entry point to the plugin
58 characters long description:
Display related posts based on common categories and tags.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,496 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 334 | 379 | 1,119 |
CSS | 2 | 69 | 3 | 369 |
JavaScript | 2 | 2 | 1 | 8 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 37.25 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 4.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 40 | 93.02% |
▷ Protected methods | 1 | 2.33% |
▷ Private methods | 2 | 4.65% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
library/images/image-size-3-2.png | 0.92KB | 0.09KB | ▼ 89.74% |
library/images/image-size-4-3.png | 0.92KB | 0.09KB | ▼ 89.75% |
library/images/image-size-1-1.png | 0.93KB | 0.09KB | ▼ 89.79% |