Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼2.40ms] Passed 4 tests
An overview of server-side resources used by Recommend Us
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 43.70 ▼8.42 |
Dashboard /wp-admin | 3.50 ▲0.20 | 63.12 ▲12.37 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 49.58 ▼2.93 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 90.99 ▼9.53 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 41.48 ▲11.27 |
Options /wp-admin/admin.php?page=fp_admin_options_page | 3.39 | 36.72 |
Instructions /wp-admin/admin.php?page=msrp_settings_main | 3.39 | 37.63 |
Add Recommendation /wp-admin/admin.php?page=msrp_admin_add_edit | 3.39 | 36.76 |
Approved Recommendations /wp-admin/admin.php?page=fp_admin_approved_recommendation_page | 3.43 | 35.00 |
Pending Recommendations /wp-admin/admin.php?page=fp_admin_pending_recommendation_page | 3.43 | 37.35 |
Server storage [IO: ▲0.22MB] [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: 21 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_msbd_recommends |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
msr_options |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Recommend Us: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲153 | 13.84 ▼0.74 | 10.30 ▲8.28 | 42.99 ▼4.57 |
Dashboard /wp-admin | 2,223 ▲46 | 5.68 ▲0.04 | 88.15 ▼4.71 | 71.63 ▲32.09 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.01 ▲0.04 | 33.22 ▼3.34 | 33.90 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,714 ▲186 | 22.33 ▼0.77 | 703.40 ▲12.37 | 53.22 ▼0.38 |
Media Library /wp-admin/upload.php | 1,440 ▲37 | 4.26 ▲0.07 | 100.57 ▼2.25 | 65.72 ▲23.55 |
Options /wp-admin/admin.php?page=fp_admin_options_page | 1,115 | 5.25 | 146.71 | 42.79 |
Instructions /wp-admin/admin.php?page=msrp_settings_main | 1,067 | 4.90 | 149.95 | 28.68 |
Add Recommendation /wp-admin/admin.php?page=msrp_admin_add_edit | 1,071 | 4.68 | 92.33 | 35.45 |
Approved Recommendations /wp-admin/admin.php?page=fp_admin_approved_recommendation_page | 1,197 | 4.84 | 88.72 | 31.92 |
Pending Recommendations /wp-admin/admin.php?page=fp_admin_pending_recommendation_page | 1,194 | 4.82 | 89.24 | 36.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_msbd_recommends
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- msr_options
- widget_recent-comments
- theysaidso_admin_options
- 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
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/recommend-us/recommend-us.php:15
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/recommend-us/lib/recommend-us-admin-tables.php on line 7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/recommend-us/lib/recommend-us-admin-tables.php on line 7
- > PHP Fatal error
Uncaught Error: Class 'MSBDDB' not found in wp-content/plugins/recommend-us/lib/recommend-us-db.php:6
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/recommend-us/lib/recommend-us-admin-tables.php on line 7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=fp_admin_pending_recommendation_page
- > Other (severe) in unknown
chrome-error://chromewebdata/ - Refused to display 'https://developers.google.com/' in a frame because it set 'X-Frame-Options' to 'sameorigin'.
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
recommend-us/recommend-us.php 92% from 13 tests
The main PHP script in "Recommend Us" version 2.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,877 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 272 | 119 | 1,402 |
SVG | 1 | 0 | 0 | 228 |
CSS | 3 | 16 | 4 | 216 |
JavaScript | 2 | 8 | 0 | 31 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 23.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 3.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 82 | |
▷ Static methods | 8 | 9.76% |
▷ Public methods | 82 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/msbd_logo.png | 28.81KB | 9.10KB | ▼ 68.41% |
images/msbd_favicon_16.png | 0.61KB | 0.63KB | 0.00% |
images/msbd_favicon_32.png | 1.12KB | 1.20KB | 0.00% |