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
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/fv-testimonials/model/fv-testimonials-class.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; FV_Testimonials has a deprecated constructor
Server metrics [RAM: ▼1.48MB] [CPU: ▼49.34ms] Passed 4 tests
A check of server-side resources used by FV Testimonials
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.50 ▼0.95 | 7.19 ▼36.10 |
Dashboard /wp-admin | 2.52 ▼0.78 | 8.58 ▼40.22 |
Posts /wp-admin/edit.php | 2.53 ▼0.83 | 7.31 ▼37.91 |
Add New Post /wp-admin/post-new.php | 2.52 ▼3.36 | 8.11 ▼83.11 |
Media Library /wp-admin/upload.php | 2.53 ▼0.70 | 7.61 ▼28.11 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 2.53 | 7.53 |
Categories /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=testimonial | 2.53 | 7.17 |
Order /wp-admin/edit.php?post_type=testimonial&page=fv-testimonial-by-category | 2.53 | 8.45 |
Add New /wp-admin/post-new.php?post_type=testimonial | 2.53 | 8.30 |
Options /wp-admin/edit.php?post_type=testimonial&page=fv-testimonial-options2 | 2.53 | 7.96 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for FV Testimonials
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,852 ▲117 | 13.29 ▼1.03 | 1.87 ▲0.09 | 44.07 ▼25.56 |
Dashboard /wp-admin | 2,255 ▲64 | 4.97 ▲0.05 | 105.34 ▼0.53 | 41.72 ▼0.27 |
Posts /wp-admin/edit.php | 2,142 ▲56 | 2.29 ▲0.29 | 35.67 ▼1.12 | 33.02 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,556 ▲23 | 23.52 ▲0.49 | 630.99 ▼49.30 | 35.38 ▼15.85 |
Media Library /wp-admin/upload.php | 1,434 ▲49 | 4.32 ▲0.11 | 97.28 ▼10.89 | 41.13 ▼6.74 |
All Testimonials /wp-admin/edit.php?post_type=testimonial | 1,158 | 2.24 | 38.07 | 30.12 |
Categories /wp-admin/edit-tags.php?taxonomy=testimonial_category&post_type=testimonial | 1,318 | 1.97 | 29.99 | 27.44 |
Order /wp-admin/edit.php?post_type=testimonial&page=fv-testimonial-by-category | 865 | 2.17 | 35.69 | 35.50 |
Add New /wp-admin/post-new.php?post_type=testimonial | 2,538 | 7.79 | 171.49 | 64.82 |
Options /wp-admin/edit.php?post_type=testimonial&page=fv-testimonial-options2 | 888 | 1.86 | 24.12 | 26.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/fv-testimonials/model/fv-testimonials-class.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; FV_Testimonials has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 6 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=testimonial&page=fv-testimonial-options2
- > Deprecated in wp-content/plugins/fv-testimonials/model/fv-testimonials-class.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; FV_Testimonials has a deprecated constructor
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/fv-testimonials/view/user/input.php
- 19× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
require_once(FVTESTIMONIALS_ROOT/model/image-class.php): failed to open stream: No such file or directory in wp-content/plugins/fv-testimonials/model/fv-testimonials-class.php on line 3
- > PHP Warning
require_once(FVTESTIMONIALS_ROOTmodel/fv-testimonials-class.php): failed to open stream: No such file or directory in wp-content/plugins/fv-testimonials/controller/shortcodes.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function register_deactivation_hook() in wp-content/plugins/fv-testimonials/fv-testimonials.php:11
- > PHP Notice
Undefined variable: objFVTMain in wp-content/plugins/fv-testimonials/view/admin/options.php on line 3
- > PHP Warning
Use of undefined constant FVTESTIMONIALS_ROOT - assumed 'FVTESTIMONIALS_ROOT' (this will throw an Error in a future version of PHP) in wp-content/plugins/fv-testimonials/model/fv-testimonials-class.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'FVTESTIMONIALS_ROOTmodel/fv-testimonials-class.php' (include_path='.:/usr/share/php') in wp-content/plugins/fv-testimonials/controller/shortcodes.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fv-testimonials/controller/conversions.php:3
- > PHP Notice
Undefined variable: strText in wp-content/plugins/fv-testimonials/view/user/input.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'FVTESTIMONIALS_ROOT/model/image-class.php' (include_path='.:/usr/share/php') in wp-content/plugins/fv-testimonials/controller/backend.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/fv-testimonials/view/admin/options.php:14
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (FV Testimonials management) image not found
fv-testimonials/fv-testimonials.php Passed 13 tests
This is the main PHP file of "FV Testimonials" version 1.13, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
34 characters long description:
Management system for testimonials
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected3,219 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 555 | 378 | 2,466 |
CSS | 4 | 102 | 86 | 664 |
JavaScript | 1 | 6 | 25 | 84 |
Markdown | 1 | 1 | 0 | 5 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Cyclomatic complexity of methods should be reduced to less than 100 (currently 124)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 196.00 |
▷ Minimum class complexity | 86.00 |
▷ Maximum class complexity | 306.00 |
Average method complexity | 12.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 124.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 7 | 21.21% |
▷ Public methods | 25 | 75.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 24.24% |
Functions | 52 | |
▷ Named functions | 52 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 7 | 41.18% |
▷ Class constants | 10 | 58.82% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.16MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
controller/cross.png | 0.67KB | 0.72KB | 0.00% |
controller/tick.png | 0.81KB | 0.86KB | 0.00% |
screenshot-1.png | 163.69KB | 63.58KB | ▼ 61.16% |