Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin cannot be installed
- > Parse error in wp-content/plugins/similar-sites-menu/similar_sites.php+50
syntax error, unexpected end of file
Server metrics [RAM: ▲0.00MB] [CPU: ▲0.48ms] Passed 4 tests
Analyzing server-side resources used by Similar sites menu
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.93 ▼1.66 |
Dashboard /wp-admin | 3.31 ▲0.00 | 49.55 ▼2.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.92 ▲4.18 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 93.61 ▲7.54 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.83 ▲1.85 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Similar sites menu: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.48 ▼0.10 | 1.72 ▼0.03 | 41.25 ▼3.50 |
Dashboard /wp-admin | 2,203 ▲15 | 5.85 ▼0.03 | 94.51 ▼20.08 | 38.76 ▼3.38 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.02 | 39.45 ▲3.26 | 34.47 ▲1.81 |
Add New Post /wp-admin/post-new.php | 1,535 ▲1 | 23.56 ▲0.42 | 633.45 ▼53.44 | 49.97 ▼20.54 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.17 ▼0.06 | 95.64 ▼21.01 | 43.75 ▼6.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/similar-sites-menu/similar_sites_admin.php:30
- > PHP Notice
Undefined index: similar_sites_hidden in wp-content/plugins/similar-sites-menu/similar_sites_admin.php on line 2
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/similar-sites-menu/similar_sites.php on line 50
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Invalid URI found ("")
similar-sites-menu/similar_sites.php 85% from 13 tests
This is the main PHP file of "Similar sites menu" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("similar-sites-menu.php" instead of "similar_sites.php")
- Description: The description should be shorter than 140 characters (currently 158 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin949 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 138 | 37 | 820 |
PHP | 2 | 20 | 17 | 87 |
CSS | 1 | 0 | 0 | 33 |
HTML | 1 | 3 | 0 | 9 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 compressed PNG files occupy 0.01MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
link.png | 0.41KB | 0.43KB | 0.00% |
jscolor/hs.png | 2.62KB | 7.54KB | 0.00% |
jscolor/hv.png | 2.80KB | 7.32KB | 0.00% |