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.43MB] [CPU: ▼5.53ms] Passed 4 tests
Analyzing server-side resources used by WP Customer Reviews
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 38.54 ▼0.60 |
Dashboard /wp-admin | 3.84 ▲0.50 | 50.11 ▼10.64 |
Posts /wp-admin/edit.php | 3.89 ▲0.54 | 51.85 ▼0.20 |
Add New Post /wp-admin/post-new.php | 6.37 ▲0.49 | 86.12 ▼10.67 |
Media Library /wp-admin/upload.php | 3.74 ▲0.51 | 38.04 ▲7.61 |
All Reviews /wp-admin/edit.php?post_type=wpcr3_review | 3.75 | 37.62 |
Plugin Settings /wp-admin/admin.php?page=wpcr3_options | 3.74 | 31.60 |
Server storage [IO: ▲0.24MB] [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: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
wpcr3_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Customer Reviews
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,929 ▲182 | 13.40 ▼1.39 | 9.11 ▲7.47 | 38.23 ▼6.00 |
Dashboard /wp-admin | 2,207 ▲36 | 5.56 ▼0.08 | 94.96 ▲4.60 | 86.63 ▲43.41 |
Posts /wp-admin/edit.php | 2,133 ▲33 | 2.06 ▲0.12 | 39.12 ▼0.97 | 34.67 ▼0.36 |
Add New Post /wp-admin/post-new.php | 6,476 ▲4,950 | 25.90 ▲2.75 | 923.32 ▲316.57 | 63.52 ▲10.72 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.24 ▲0.04 | 98.20 ▲1.95 | 77.36 ▲32.08 |
All Reviews /wp-admin/edit.php?post_type=wpcr3_review | 1,208 | 2.31 | 43.57 | 27.27 |
Plugin Settings /wp-admin/admin.php?page=wpcr3_options | 930 | 1.84 | 29.63 | 29.28 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- db_upgraded
- wpcr3_options
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 4× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-customer-reviews/include/admin/tools/remove-duplicates.php
- > /wp-content/plugins/wp-customer-reviews/include/admin/tools/delete-all-reviews.php
- > /wp-content/plugins/wp-customer-reviews/include/admin/tools/reimport-2x.php
- > /wp-content/plugins/wp-customer-reviews/include/ajax.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-customer-reviews/wp-customer-reviews-3.php:109
- > PHP Fatal error
Uncaught Error: Class 'WPCustomerReviews3' not found in wp-content/plugins/wp-customer-reviews/include/admin/wp-customer-reviews-3-admin.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 28 tag instead of maximum 10
wp-customer-reviews/wp-customer-reviews-3.php 85% from 13 tests
The primary PHP file in "WP Customer Reviews" version 3.7.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 149 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("wp-customer-reviews.php" instead of "wp-customer-reviews-3.php")
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
There were no executable files found in this plugin3,463 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 475 | 222 | 2,512 |
CSS | 2 | 33 | 7 | 412 |
HTML | 10 | 4 | 0 | 283 |
JavaScript | 2 | 45 | 10 | 256 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 132.33 |
▷ Minimum class complexity | 62.00 |
▷ Maximum class complexity | 172.00 |
Average method complexity | 4.58 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 110 | |
▷ Static methods | 6 | 5.45% |
▷ Public methods | 107 | 97.27% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.73% |
Functions | 3 | |
▷ Named functions | 3 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.00MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/1x1.png | 0.07KB | 0.09KB | 0.00% |
css/star.png | 0.64KB | 0.78KB | 0.00% |
css/newstars.png | 1.00KB | 0.78KB | ▼ 21.51% |