Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼0.65ms] 75% from 4 tests
An overview of server-side resources used by Reviewer
The following require your attention
- CPU: Try to keep total CPU usage under 500.00ms (currently 531.23ms on /wp-admin/admin.php?page=reviewer-extensions)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 46.27 ▲1.44 |
Dashboard /wp-admin | 3.43 ▲0.13 | 51.46 ▼1.54 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 52.53 ▲1.27 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.15 | 83.28 ▼3.78 |
Media Library /wp-admin/upload.php | 3.35 ▲0.13 | 41.03 ▲4.23 |
Extensions /wp-admin/admin.php?page=reviewer-extensions | 3.39 | 531.23 |
Add new Review /wp-admin/post-new.php?post_type=review | 3.58 | 56.27 |
Settings /wp-admin/admin.php?page=reviewer | 3.36 | 33.78 |
Tags /wp-admin/edit-tags.php?taxonomy=review_tag | 3.35 | 28.32 |
Categories /wp-admin/edit-tags.php?taxonomy=review_category | 3.35 | 37.27 |
Reviews /wp-admin/edit.php?post_type=review | 3.41 | 39.30 |
Server storage [IO: ▲0.24MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 79 new files
Database: no new tables, 13 new options
New WordPress options |
---|
reviewer_review_image_size |
widget_review_list |
widget_review_search |
widget_recent-posts |
can_compress_scripts |
reviewer_archive_image_size |
widget_review_categories |
reviewer_rating_step |
reviewer_max_rating |
db_upgraded |
... |
Browser metrics Passed 4 tests
An overview of browser requirements for Reviewer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,864 ▲93 | 14.81 ▲0.40 | 1.79 ▼0.32 | 44.89 ▲1.47 |
Dashboard /wp-admin | 2,264 ▲82 | 5.84 ▲0.94 | 107.42 ▼8.73 | 41.31 ▼3.55 |
Posts /wp-admin/edit.php | 2,149 ▲60 | 2.06 ▲0.06 | 41.32 ▲5.73 | 37.19 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,586 ▲67 | 23.24 ▲0.08 | 701.04 ▲24.03 | 56.88 ▼5.77 |
Media Library /wp-admin/upload.php | 1,446 ▲58 | 4.26 ▼0.07 | 109.79 ▲8.59 | 49.16 ▲3.98 |
Extensions /wp-admin/admin.php?page=reviewer-extensions | 905 | 1.93 | 28.97 | 27.81 |
Add new Review /wp-admin/post-new.php?post_type=review | 3,213 | 9.40 | 202.93 | 79.36 |
Settings /wp-admin/admin.php?page=reviewer | 1,001 | 1.93 | 27.84 | 25.25 |
Tags /wp-admin/edit-tags.php?taxonomy=review_tag | 1,298 | 2.30 | 27.89 | 30.48 |
Categories /wp-admin/edit-tags.php?taxonomy=review_category | 1,320 | 2.30 | 27.93 | 31.03 |
Reviews /wp-admin/edit.php?post_type=review | 1,250 | 2.18 | 34.78 | 32.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The uninstall procedure has failed, leaving 13 options in the database
- theysaidso_admin_options
- widget_review_search
- reviewer_rating_step
- db_upgraded
- reviewer_max_rating
- widget_recent-comments
- can_compress_scripts
- widget_review_list
- widget_theysaidso_widget
- widget_recent-posts
- ...
Smoke tests 50% 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 no errors were found, this is by no means an exhaustive test
SRP 0% 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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wpreviewer/includes/admin/meta-boxes/views/review-details-tab-tags.php
- > /wp-content/plugins/wpreviewer/includes/admin/meta-boxes/views/review-details-tab-categories.php
- 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpreviewer/includes/admin/meta-boxes/views/review-details-tab-general.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpreviewer/includes/admin/meta-boxes/views/review-details-tab-attributes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function site_url() in wp-content/plugins/wpreviewer/includes/admin/views/system-status-report.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wpreviewer/includes/admin/views/extensions.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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Screenshots: Please describe screenshot #9 in wpreviewer/assets to your readme.txt
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
wpreviewer/reviewer.php 85% from 13 tests
Analyzing the main PHP file in "Reviewer" version 1.0.5
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpreviewer.php" instead of "reviewer.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
No dangerous file extensions were detected4,579 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 1,203 | 1,760 | 2,337 |
Sass | 6 | 126 | 15 | 816 |
JavaScript | 8 | 98 | 43 | 710 |
CSS | 4 | 16 | 8 | 461 |
PO File | 1 | 91 | 108 | 218 |
YAML | 1 | 0 | 3 | 36 |
SVG | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 8.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 4 | 25.00% |
▷ Concrete classes | 12 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 89 | |
▷ Static methods | 2 | 2.25% |
▷ Public methods | 83 | 93.26% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 6.74% |
Functions | 54 | |
▷ Named functions | 53 | 98.15% |
▷ Anonymous functions | 1 | 1.85% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected