Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/contempo-reviews/includes/admin/ctpo_interface.php+251
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.69MB] [CPU: ▼56.62ms] Passed 4 tests
Analyzing server-side resources used by WP Star Reviews, Map, and Testimonials
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.23 | 5.91 ▼39.14 |
Dashboard /wp-admin | 2.39 ▼1.00 | 9.66 ▼51.84 |
Posts /wp-admin/edit.php | 2.39 ▼1.01 | 9.03 ▼42.01 |
Add New Post /wp-admin/post-new.php | 2.39 ▼3.54 | 9.31 ▼93.47 |
Media Library /wp-admin/upload.php | 2.39 ▼0.88 | 9.53 ▼28.75 |
Server storage [IO: ▲3.76MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 275 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_latest_project |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
WP Star Reviews, Map, and Testimonials: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,909 ▲148 | 13.88 ▼0.47 | 7.94 ▲6.13 | 39.21 ▼3.37 |
Dashboard /wp-admin | 2,239 ▲59 | 5.66 ▼0.00 | 84.72 ▼2.27 | 44.37 ▲0.71 |
Posts /wp-admin/edit.php | 2,132 ▲32 | 2.51 ▲0.48 | 51.19 ▲7.46 | 40.81 ▲0.88 |
Add New Post /wp-admin/post-new.php | 2,344 ▲816 | 23.28 ▲0.26 | 621.86 ▼76.97 | 49.57 ▼0.96 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.21 ▲0.14 | 98.12 ▼12.05 | 45.68 ▲0.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Notice in wp-content/plugins/contempo-reviews/includes/admin/ctpo_interface.php+251
Trying to access array offset on value of type bool
- Zombie WordPress options detected upon uninstall: 7 options
- widget_latest_project
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/contempo-reviews/includes/admin/styles.php
- 11× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_list_comments() in wp-content/plugins/contempo-reviews/includes/review_template.php:4
- > PHP Notice
Undefined variable: shine_effect in wp-content/plugins/contempo-reviews/includes/admin/styles.php on line 103
- > PHP Fatal error
Uncaught Error: Class 'ContempoOptions' not found in wp-content/plugins/contempo-reviews/includes/admin/ctpo_gui.php:3
- > PHP Notice
Undefined variable: text_shadow in wp-content/plugins/contempo-reviews/includes/admin/styles.php on line 51
- > PHP Notice
Undefined variable: text_shadow in wp-content/plugins/contempo-reviews/includes/admin/styles.php on line 80
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/contempo-reviews/includes/testimonial_widget.php:3
- > PHP Notice
Undefined variable: text_shadow in wp-content/plugins/contempo-reviews/includes/admin/styles.php on line 35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contempo-reviews/includes/testimonial_admin.php:17
- > PHP Notice
Undefined variable: text_shadow in wp-content/plugins/contempo-reviews/includes/admin/styles.php on line 96
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/contempo-reviews/ctpo-testimonials.php:15
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: seo reviews, comment system, testimonials, wordpress star reviews, review map
contempo-reviews/ctpo-testimonials.php 92% from 13 tests
The principal PHP file in "WP Star Reviews, Map, and Testimonials" v. 1.2 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("contempo-reviews.php" instead of "ctpo-testimonials.php")
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
Success! There were no dangerous files found in this plugin32,559 lines of code in 108 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 29 | 3,758 | 3,779 | 16,951 |
CSS | 60 | 458 | 564 | 7,292 |
SVG | 2 | 0 | 0 | 2,779 |
PHP | 8 | 735 | 264 | 2,126 |
HTML | 3 | 58 | 4 | 1,838 |
Stylus | 1 | 254 | 6 | 931 |
Markdown | 3 | 141 | 0 | 407 |
PO File | 1 | 95 | 104 | 223 |
JSON | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 17.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 36.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 37 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.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
135 compressed PNG files occupy 1.33MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/admin/js/iCheck/skins/square/orange.png | 2.13KB | 1.83KB | ▼ 14.26% |
includes/admin/js/iCheck/skins/flat/grey@2x.png | 3.67KB | 2.77KB | ▼ 24.49% |
includes/admin/js/iCheck/skins/minimal/yellow.png | 1.11KB | 1.45KB | 0.00% |
includes/admin/css/images/ui-icons_3d80b3_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |
includes/admin/js/iCheck/skins/futurico/futurico@2x.png | 3.37KB | 2.51KB | ▼ 25.45% |