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
Installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼5.72ms] Passed 4 tests
Server-side resources used by Recommend
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 44.56 ▲7.63 |
Dashboard /wp-admin | 3.39 ▲0.08 | 48.36 ▼4.45 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 44.51 ▲3.08 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 80.26 ▼21.36 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.11 ▼0.14 |
Recommend /wp-admin/options-general.php?page=recommend | 3.28 | 28.54 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
wp_recommend_settings |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Recommend
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,906 ▲145 | 13.60 ▼0.93 | 10.82 ▲9.22 | 46.79 ▲2.96 |
Dashboard /wp-admin | 2,201 ▲21 | 5.55 ▲0.03 | 85.03 ▼1.76 | 39.55 ▲0.98 |
Posts /wp-admin/edit.php | 2,113 ▲13 | 1.96 ▼0.02 | 34.35 ▼5.08 | 34.70 ▲1.81 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 18.24 ▼4.48 | 614.10 ▼61.19 | 67.84 ▲12.11 |
Media Library /wp-admin/upload.php | 1,409 ▲12 | 4.18 ▼0.01 | 105.08 ▲3.75 | 47.31 ▲1.19 |
Recommend /wp-admin/options-general.php?page=recommend | 881 | 1.69 | 23.51 | 29.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
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)
Good news, no errors were detected
SRP 50% 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 items
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recommend/inc/rest-api.php:32
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/recommend/recommend.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/recommend/inc/admin.php:37
- > 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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: thumbs up, like, recommend, heart
recommend/recommend.php 92% from 13 tests
"Recommend" version 0.6.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Description: Please don't use more than 140 characters for the plugin description (currently 249 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected572 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 77 | 131 | 457 |
JavaScript | 1 | 12 | 25 | 88 |
CSS | 1 | 4 | 0 | 22 |
Markdown | 1 | 3 | 0 | 5 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 26 | |
▷ Named functions | 24 | 92.31% |
▷ Anonymous functions | 2 | 7.69% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin