Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/tb-testimonials/tbtestimonials-widget.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; TBTestimonialsWidget has a deprecated constructor
Server metrics [RAM: ▼1.56MB] [CPU: ▼49.05ms] Passed 4 tests
A check of server-side resources used by TBTestimonials
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.43 ▼1.04 | 7.61 ▼28.01 |
Dashboard /wp-admin | 2.45 ▼0.86 | 7.74 ▼42.69 |
Posts /wp-admin/edit.php | 2.45 ▼0.91 | 7.25 ▼40.85 |
Add New Post /wp-admin/post-new.php | 2.45 ▼3.44 | 7.71 ▼84.64 |
Media Library /wp-admin/upload.php | 2.45 ▼0.79 | 8.33 ▼27.01 |
General Settings /wp-admin/edit.php?post_type=testimonial&page=tbtestimonials-settings | 2.45 | 6.51 |
Categories /wp-admin/edit-tags.php?taxonomy=tbtestimonial_category&post_type=testimonial | 2.45 | 8.17 |
Add A Testimonial /wp-admin/post-new.php?post_type=testimonial | 2.45 | 6.67 |
Output Templates /wp-admin/edit.php?post_type=testimonial&page=tbtestimonials-output-templates | 2.45 | 9.04 |
Documentation /wp-admin/edit.php?post_type=testimonial&page=tbtestimonials-documentation | 2.45 | 7.26 |
Testimonials /wp-admin/edit.php?post_type=testimonial | 2.45 | 10.14 |
Server storage [IO: ▲1.77MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 219 new files
Database: no new tables, 11 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
tbt_templates |
tbtestimonials_preloaders |
db_upgraded |
tbtestimonials_output_settings |
widget_tbtestimonialswidget |
tbtestimonials_settings |
... |
Browser metrics Passed 4 tests
Checking browser requirements for TBTestimonials
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲80 | 14.10 ▼0.06 | 2.02 ▲0.50 | 43.91 ▲5.81 |
Dashboard /wp-admin | 2,240 ▲66 | 5.67 ▲0.08 | 82.55 ▼5.72 | 40.05 ▼1.64 |
Posts /wp-admin/edit.php | 2,147 ▲47 | 2.04 ▲0.01 | 41.17 ▲6.31 | 35.54 ▼6.65 |
Add New Post /wp-admin/post-new.php | 1,565 ▲30 | 23.31 ▲5.03 | 694.70 ▲56.92 | 69.59 ▼0.91 |
Media Library /wp-admin/upload.php | 1,445 ▲45 | 4.15 ▲0.01 | 106.75 ▼6.91 | 39.83 ▼9.48 |
General Settings /wp-admin/edit.php?post_type=testimonial&page=tbtestimonials-settings | 1,035 | 1.70 | 24.94 | 35.92 |
Categories /wp-admin/edit-tags.php?taxonomy=tbtestimonial_category&post_type=testimonial | 1,319 | 2.12 | 26.70 | 29.34 |
Add A Testimonial /wp-admin/post-new.php?post_type=testimonial | 2,515 | 8.10 | 167.13 | 76.51 |
Output Templates /wp-admin/edit.php?post_type=testimonial&page=tbtestimonials-output-templates | 1,810 | 3.94 | 91.33 | 84.10 |
Documentation /wp-admin/edit.php?post_type=testimonial&page=tbtestimonials-documentation | 1,572 | 2.05 | 38.21 | 50.22 |
Testimonials /wp-admin/edit.php?post_type=testimonial | 1,118 | 1.98 | 33.15 | 30.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/tb-testimonials/tbtestimonials-widget.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; TBTestimonialsWidget has a deprecated constructor
- This plugin does not fully uninstall, leaving 11 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- tbt_templates
- tbtestimonials_preloaders
- tbtestimonials_output_settings
- widget_recent-comments
- tbtestimonials_settings
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- ...
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=testimonial
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/tb-testimonials/tbtestimonials-widget.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; TBTestimonialsWidget has a deprecated constructor
- 13 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=testimonial
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/tb-testimonials/tbtestimonials-widget.php+324
Function create_function() is deprecated
- 7 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=testimonial
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in TBTestimonialsWidget is deprecated since version 4.3.0! Use __construct() instead.
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
Please fix the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/tb-testimonials/inc/tpl/documentation.php
- > /wp-content/plugins/tb-testimonials/inc/twig/bin/create_pear_package.php
- 135× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression' not found in wp-content/plugins/tb-testimonials/inc/twig/lib/Twig/Node/Expression/GetAttr.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Twig_NodeInterface' not found in wp-content/plugins/tb-testimonials/inc/twig/lib/Twig/Node.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Module' not found in wp-content/plugins/tb-testimonials/inc/twig/lib/Twig/Node/SandboxedModule.php:19
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/tb-testimonials/inc/twig/lib/Twig/Node/Include.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Twig_LexerInterface' not found in wp-content/plugins/tb-testimonials/inc/twig/lib/Twig/Lexer.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Twig_TokenParserInterface' not found in wp-content/plugins/tb-testimonials/inc/twig/lib/Twig/TokenParser.php:18
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/tb-testimonials/inc/twig/lib/Twig/TokenParser/Macro.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node' not found in wp-content/plugins/tb-testimonials/inc/twig/lib/Twig/Node/Print.php:19
- > PHP Notice
Trying to get property 'templates' of non-object in wp-content/plugins/tb-testimonials/inc/tpl/syntax-settings-api.php on line 53
- > PHP Fatal error
Uncaught Error: Interface 'Twig_TestInterface' not found in wp-content/plugins/tb-testimonials/inc/twig/lib/Twig/Test/Function.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Main testimonial listing), #2 (Add a testimonial page), #3 (General Plugin Settings), #4 (Output Templates), #5 (Template Tags), #6 (Create New Template), #7 (Documentation)
- Tags: There are too many tags (13 tag instead of maximum 10)
tb-testimonials/tb-testimonials.php 92% from 13 tests
The principal PHP file in "TBTestimonials" v. 1.7.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 186 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin12,572 lines of code in 191 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 161 | 1,737 | 4,634 | 8,368 |
JavaScript | 18 | 418 | 635 | 3,214 |
C | 1 | 154 | 136 | 735 |
CSS | 5 | 32 | 1 | 148 |
JSON | 1 | 0 | 0 | 31 |
C/C++ Header | 1 | 10 | 13 | 26 |
XML | 1 | 2 | 0 | 23 |
Markdown | 1 | 6 | 0 | 11 |
YAML | 1 | 3 | 0 | 11 |
m4 | 1 | 2 | 1 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 7.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 128.00 |
Average method complexity | 2.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 36.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 15 | |
Traits | 0 | |
Classes | 139 | |
▷ Abstract classes | 8 | 5.76% |
▷ Concrete classes | 131 | 94.24% |
▷ Final classes | 0 | 0.00% |
Methods | 667 | |
▷ Static methods | 5 | 0.75% |
▷ Public methods | 598 | 89.66% |
▷ Protected methods | 69 | 10.34% |
▷ Private methods | 0 | 0.00% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 36 | |
▷ Global constants | 1 | 2.78% |
▷ Class constants | 35 | 97.22% |
▷ Public constants | 35 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 1.07MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 217.74KB | 72.98KB | ▼ 66.48% |
inc/i/tbdlogo.png | 20.67KB | 10.61KB | ▼ 48.67% |
screenshot-5.png | 108.28KB | 41.98KB | ▼ 61.23% |
inc/i/pillow_128.png | 14.59KB | 4.42KB | ▼ 69.71% |
screenshot-7.png | 171.90KB | 69.15KB | ▼ 59.78% |