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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.12MB] [CPU: ▼6.19ms] Passed 4 tests
An overview of server-side resources used by YITH Proteo Toolkit
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.54 ▲2.09 |
Dashboard /wp-admin | 3.42 ▲0.08 | 44.10 ▼13.77 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 44.39 ▼1.66 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.14 | 82.36 ▼11.43 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 38.77 ▲4.91 |
Server storage [IO: ▲1.24MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for YITH Proteo Toolkit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲99 | 13.32 ▼1.08 | 4.92 ▲3.18 | 44.03 ▲3.90 |
Dashboard /wp-admin | 2,229 ▲40 | 4.93 ▲0.04 | 98.38 ▼6.69 | 40.98 ▼5.33 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.05 ▲0.04 | 36.77 ▲1.38 | 37.79 ▲3.34 |
Add New Post /wp-admin/post-new.php | 1,534 ▲20 | 23.38 ▲5.92 | 659.14 ▼19.56 | 48.43 ▼10.29 |
Media Library /wp-admin/upload.php | 1,411 ▲26 | 4.31 ▲0.11 | 94.93 ▼22.14 | 44.08 ▼6.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/yith-proteo-toolkit/includes/third-party/importer/assets/images/spinner.php
- 16× 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 add_action() in wp-content/plugins/yith-proteo-toolkit/includes/testimonials-module/post-types/class-proteo-testimonials-metabox.php:112
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yith-proteo-toolkit/block-patterns/block-patterns.php:77
- > PHP Fatal error
Uncaught Error: Class 'WP_Customize_Setting' not found in wp-content/plugins/yith-proteo-toolkit/includes/third-party/importer/includes/class-yith-proteo-wizard-customizer-option.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_x() in wp-content/plugins/yith-proteo-toolkit/includes/testimonials-module/module.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function yith_proteo_toolkit_testimonials_get_list_of_elements_to_show() in wp-content/plugins/yith-proteo-toolkit/templates/proteo-testimonials.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_Importer' not found in wp-content/plugins/yith-proteo-toolkit/includes/third-party/importer/vendor/awesomemotive/wp-content-importer-v2/src/WXRImporter.php:7
- > PHP Fatal error
Uncaught Error: Class 'ProteusThemes\\WPContentImporter2\\WXRImporter' not found in wp-content/plugins/yith-proteo-toolkit/includes/third-party/importer/vendor/proteusthemes/wp-content-importer-v2/src/Importer.php:13
- > PHP Notice
Undefined variable: proteo_testimonials_elements_to_show in wp-content/plugins/yith-proteo-toolkit/templates/proteo-testimonials.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yith-proteo-toolkit/includes/testimonials-module/block/testimonials-block.php:9
- > PHP Fatal error
Uncaught Error: Class 'AwesomeMotive\\WPContentImporter2\\WPImporterLogger' not found in wp-content/plugins/yith-proteo-toolkit/includes/third-party/importer/vendor/awesomemotive/wp-content-importer-v2/src/WPImporterLoggerCLI.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
yith-proteo-toolkit/yith-proteo-toolkit.php Passed 13 tests
The main PHP file in "YITH Proteo Toolkit" ver. 1.2.3 adds more information about the plugin and also serves as the entry point for this plugin
59 characters long description:
Add extra features and a setup wizard to YITH Proteo theme.
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
Everything looks great! No dangerous files found in this plugin13,505 lines of code in 66 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 42 | 2,372 | 4,587 | 9,071 |
CSS | 5 | 366 | 0 | 2,956 |
SVG | 6 | 18 | 6 | 692 |
JavaScript | 7 | 122 | 21 | 622 |
JSON | 4 | 0 | 0 | 120 |
Markdown | 2 | 27 | 0 | 44 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 43.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 290.00 |
Average method complexity | 4.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 1 | 3.12% |
Methods | 375 | |
▷ Static methods | 26 | 6.93% |
▷ Public methods | 252 | 67.20% |
▷ Protected methods | 111 | 29.60% |
▷ Private methods | 12 | 3.20% |
Functions | 24 | |
▷ Named functions | 23 | 95.83% |
▷ Anonymous functions | 1 | 4.17% |
Constants | 12 | |
▷ Global constants | 5 | 41.67% |
▷ Class constants | 7 | 58.33% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 compressed PNG files occupy 0.40MB
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
includes/third-party/importer/assets/images/screenshot.png | 203.55KB | 203.82KB | 0.00% |
assets/img/proteo-logo.png | 5.03KB | 3.61KB | ▼ 28.22% |
assets/img/screenshot.png | 203.55KB | 203.82KB | 0.00% |