Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.01ms] Passed 4 tests
This is a short check of server-side resources used by Review Content Type
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.19 ▼4.84 |
Dashboard /wp-admin | 3.43 ▲0.13 | 47.19 ▼5.98 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 48.75 ▲2.07 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 90.42 ▼7.27 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.62 ▲2.44 |
Add New /wp-admin/post-new.php?post_type=review | 3.52 | 55.76 |
Categories /wp-admin/edit-tags.php?taxonomy=review_category&post_type=review | 3.34 | 35.83 |
Settings /wp-admin/edit.php?post_type=review&page=rct_settings | 3.32 | 33.16 |
Reviews /wp-admin/edit.php?post_type=review | 3.41 | 38.11 |
Tags /wp-admin/edit-tags.php?taxonomy=review_tag&post_type=review | 3.34 | 32.43 |
Server storage [IO: ▲0.18MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 38 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
rct_version |
can_compress_scripts |
rct_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Review Content Type: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲192 | 14.13 ▼0.16 | 4.55 ▲2.72 | 40.79 ▼4.82 |
Dashboard /wp-admin | 2,244 ▲56 | 5.00 ▲0.14 | 106.48 ▼12.42 | 38.77 ▼9.10 |
Posts /wp-admin/edit.php | 2,132 ▲46 | 2.08 ▲0.03 | 36.47 ▲0.52 | 30.81 ▼2.70 |
Add New Post /wp-admin/post-new.php | 6,557 ▲5,043 | 27.37 ▲9.52 | 866.69 ▲194.83 | 37.80 ▼17.55 |
Media Library /wp-admin/upload.php | 1,423 ▲41 | 4.23 ▲0.07 | 100.81 ▲2.64 | 40.75 ▼2.52 |
Add New /wp-admin/post-new.php?post_type=review | 3,117 | 8.11 | 206.32 | 75.81 |
Categories /wp-admin/edit-tags.php?taxonomy=review_category&post_type=review | 1,308 | 1.89 | 26.87 | 27.47 |
Settings /wp-admin/edit.php?post_type=review&page=rct_settings | 1,094 | 1.82 | 24.36 | 39.05 |
Reviews /wp-admin/edit.php?post_type=review | 1,145 | 2.05 | 33.44 | 28.28 |
Tags /wp-admin/edit-tags.php?taxonomy=review_tag&post_type=review | 1,277 | 1.88 | 27.67 | 24.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- 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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/review-content-type/templates/content-single-review.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/review-content-type/templates/content-single-review-featured-image.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function rct_get_min_price() in wp-content/plugins/review-content-type/templates/content-single-review-price.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/review-content-type/templates/content-single-review-rating.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/review-content-type/templates/content-single-review-pros-cons.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function rct_get_reviewed_item_name() in wp-content/plugins/review-content-type/templates/content-single-review-name.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function rct_get_review_summary() in wp-content/plugins/review-content-type/templates/content-single-review-summary.php:1
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
- > GET request to /wp-admin/post-new.php?post_type=review
- > Network (severe)
wp-content/plugins/review-content-type/assets/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=review
- > Network (severe)
wp-content/plugins/review-content-type/assets/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/post-new.php?post_type=review
- > Network (severe)
wp-content/plugins/review-content-type/assets/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% 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
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
review-content-type/review-content-type.php Passed 13 tests
Analyzing the main PHP file in "Review Content Type" version 1.0.4
125 characters long description:
Create and manage reviews easily with this feature-rich, extendable, powerful and free WordPress review plugin the right way.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,989 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 319 | 840 | 1,939 |
CSS | 6 | 285 | 42 | 981 |
JavaScript | 2 | 8 | 0 | 69 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 14.70 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 3.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 1 | 10.00% |
Methods | 51 | |
▷ Static methods | 8 | 15.69% |
▷ Public methods | 44 | 86.27% |
▷ Protected methods | 4 | 7.84% |
▷ Private methods | 3 | 5.88% |
Functions | 41 | |
▷ Named functions | 41 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/placeholder.png | 2.75KB | 2.92KB | 0.00% |