Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
- Install procedure had errors
- > Warning in wp-content/plugins/cp-testimonial/testimonial.php+46
Use of undefined constant active - assumed 'active' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼0.73MB] [CPU: ▼30.14ms] Passed 4 tests
Analyzing server-side resources used by CP Testimonial
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 39.99 ▲2.88 |
Dashboard /wp-admin | 3.21 ▼0.09 | 22.20 ▼23.53 |
Posts /wp-admin/edit.php | 3.21 ▼0.14 | 25.84 ▼19.87 |
Add New Post /wp-admin/post-new.php | 3.21 ▼2.67 | 24.16 ▼66.85 |
Media Library /wp-admin/upload.php | 3.21 ▼0.01 | 23.45 ▼10.30 |
Settings /wp-admin/edit.php?post_type=creativetestimonial&page=creative_testimonial | 3.22 | 22.82 |
Add Testimonial /wp-admin/post-new.php?post_type=creativetestimonial | 3.21 | 24.82 |
All Testimonials /wp-admin/edit.php?post_type=creativetestimonial | 3.22 | 21.42 |
Server storage [IO: ▲1.82MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
testimonials_settings |
Browser metrics Passed 4 tests
Checking browser requirements for CP Testimonial
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,116 ▲370 | 15.84 ▲1.08 | 6.02 ▲4.25 | 85.66 ▲44.31 |
Dashboard /wp-admin | 2,401 ▲246 | 6.79 ▲1.13 | 133.82 ▲33.36 | 42.74 ▲3.11 |
Posts /wp-admin/edit.php | 2,316 ▲227 | 3.63 ▲1.58 | 56.56 ▲20.77 | 32.86 ▼3.67 |
Add New Post /wp-admin/post-new.php | 1,568 ▲54 | 23.46 ▲5.79 | 637.68 ▼31.21 | 38.00 ▼12.52 |
Media Library /wp-admin/upload.php | 1,446 ▲67 | 4.45 ▲0.26 | 82.78 ▼18.49 | 42.37 ▼5.56 |
Settings /wp-admin/edit.php?post_type=creativetestimonial&page=creative_testimonial | 5,329 | 4.51 | 76.15 | 29.96 |
Add Testimonial /wp-admin/post-new.php?post_type=creativetestimonial | 1,649 | 3.93 | 64.35 | 31.27 |
All Testimonials /wp-admin/edit.php?post_type=creativetestimonial | 1,305 | 3.62 | 55.19 | 29.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > 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.)
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- testimonials_settings
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=creativetestimonial
- > 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.php?post_type=creativetestimonial&page=creative_testimonial
- > Notice in wp-content/plugins/cp-testimonial/testimonial.php+923
Undefined index: starcolor
- > GET request to /wp-admin/edit.php?post_type=creativetestimonial&page=creative_testimonial
- > Notice in wp-content/plugins/cp-testimonial/testimonial.php+931
Undefined index: iconcolor
- > GET request to /wp-admin/edit.php?post_type=creativetestimonial&page=creative_testimonial
- > Notice in wp-content/plugins/cp-testimonial/testimonial.php+940
Undefined index: pagicolor
- > GET request to /wp-admin/edit.php?post_type=creativetestimonial&page=creative_testimonial
- > Notice in wp-content/plugins/cp-testimonial/testimonial.php+948
Undefined index: pagiactivecolor
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cp-testimonial/testimonial.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/edit.php?post_type=creativetestimonial&page=creative_testimonial
- > Javascript (severe) in unknown
/wp-admin/edit.php?post_type=creativetestimonial&page=creative_testimonial 1015:3 Uncaught SyntaxError: Unexpected token '
- > GET request to /wp-admin/post-new.php?post_type=creativetestimonial
- > Javascript (severe) in unknown
/wp-admin/post-new.php?post_type=creativetestimonial 434:3 Uncaught SyntaxError: Unexpected token '
- > GET request to /wp-admin/edit.php?post_type=creativetestimonial
- > Javascript (severe) in unknown
/wp-admin/edit.php?post_type=creativetestimonial 300:3 Uncaught SyntaxError: Unexpected token '
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
10 plugin tags: autoplay, custom features, free testimonial plugin, ratings, responsive testimonial slider...
cp-testimonial/testimonial.php 92% from 13 tests
The main PHP script in "CP Testimonial" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("cp-testimonial.php" instead of "testimonial.php")
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
Everything looks great! No dangerous files found in this plugin10,112 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 653 | 156 | 6,229 |
PHP | 1 | 146 | 20 | 1,371 |
JavaScript | 4 | 238 | 41 | 1,357 |
SVG | 3 | 0 | 0 | 1,155 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 70.00 |
▷ Minimum class complexity | 70.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 4.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 94.44% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.56% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 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
No PNG images were found in this plugin