Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.91MB] [CPU: ▼35.33ms] Passed 4 tests
A check of server-side resources used by Admin Reviews
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 43.36 ▲3.26 |
Dashboard /wp-admin | 3.03 ▼0.27 | 22.82 ▼25.39 |
Posts /wp-admin/edit.php | 3.03 ▼0.32 | 25.01 ▼23.51 |
Add New Post /wp-admin/post-new.php | 3.03 ▼2.86 | 23.52 ▼78.85 |
Media Library /wp-admin/upload.php | 3.03 ▼0.20 | 23.30 ▼13.58 |
Add new /wp-admin/edit-comments.php?page=admin_reviews-dashboard | 3.03 | 25.71 |
All Comments /wp-admin/edit-comments.php | 3.03 | 24.99 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Admin Reviews
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲89 | 13.20 ▼1.18 | 1.80 ▲0.13 | 41.73 ▼0.21 |
Dashboard /wp-admin | 2,230 ▲45 | 5.86 ▼0.07 | 102.18 ▲0.82 | 40.54 ▼0.31 |
Posts /wp-admin/edit.php | 2,113 ▲27 | 2.04 ▲0.04 | 39.06 ▲4.60 | 34.18 ▲0.31 |
Add New Post /wp-admin/post-new.php | 1,545 ▲7 | 18.35 ▼4.80 | 616.57 ▲27.49 | 55.66 ▲3.24 |
Media Library /wp-admin/upload.php | 1,415 ▲24 | 4.25 ▲0.05 | 95.23 ▼3.76 | 41.68 ▼3.22 |
Add new /wp-admin/edit-comments.php?page=admin_reviews-dashboard | 1,683 | 5.75 | 117.81 | 55.10 |
All Comments /wp-admin/edit-comments.php | 1,819 | 2.29 | 35.86 | 33.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/edit-comments.php?page=admin_reviews-dashboard
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method ARW_admin_reviews::ARW_render_submenu_pages() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit-comments.php?page=admin_reviews-dashboard
- > Warning in wp-content/plugins/wp-admin-reviews/templates/arw_addnew.php+5
session_start(): Cannot start session when headers already sent
- > GET request to /wp-admin/edit-comments.php?page=admin_reviews-dashboard
- > Notice in wp-content/plugins/wp-admin-reviews/templates/arw_addnew.php+87
Undefined variable: content
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-admin-reviews/templates/arw_addnew.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: admin reviews, reviews, addon for comments, comments_open, admin add comments for users
wp-admin-reviews/admin_reviews.php 85% from 13 tests
"Admin Reviews" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-admin-reviews.php" instead of "admin_reviews.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin368 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 18 | 43 | 258 |
JavaScript | 1 | 13 | 3 | 108 |
CSS | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 34.00 |
▷ Minimum class complexity | 34.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There are no PNG files in this plugin