78% yith-proteo-toolkit

Code Review | YITH Proteo Toolkit

WordPress plugin YITH Proteo Toolkit scored78%from 54 tests.

About plugin

  • Plugin page: yith-proteo-toolkit
  • Plugin version: 1.2.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3-6.2
  • WordPress version: 6.3.1
  • First release: Jul 22, 2020
  • Latest release: May 24, 2023
  • Number of updates: 20
  • Update frequency: every 51.9 days
  • Top authors: yithemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

3,000+ active /48,364 total downloads


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
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.54 ▲2.09
Dashboard /wp-admin3.42 ▲0.0844.10 ▼13.77
Posts /wp-admin/edit.php3.54 ▲0.1844.39 ▼1.66
Add New Post /wp-admin/post-new.php6.02 ▲0.1482.36 ▼11.43
Media Library /wp-admin/upload.php3.35 ▲0.1238.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

Browser metrics Passed 4 tests

An overview of browser requirements for YITH Proteo Toolkit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲9913.32 ▼1.084.92 ▲3.1844.03 ▲3.90
Dashboard /wp-admin2,229 ▲404.93 ▲0.0498.38 ▼6.6940.98 ▼5.33
Posts /wp-admin/edit.php2,109 ▲202.05 ▲0.0436.77 ▲1.3837.79 ▲3.34
Add New Post /wp-admin/post-new.php1,534 ▲2023.38 ▲5.92659.14 ▼19.5648.43 ▼10.29
Media Library /wp-admin/upload.php1,411 ▲264.31 ▲0.1194.93 ▼22.1444.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

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found


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
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code

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 code0.41
Average class complexity43.47
▷ Minimum class complexity1.00
▷ Maximum class complexity290.00
Average method complexity4.63
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes32100.00%
▷ Final classes13.12%
▷ Static methods266.93%
▷ Public methods25267.20%
▷ Protected methods11129.60%
▷ Private methods123.20%
▷ Named functions2395.83%
▷ Anonymous functions14.17%
▷ Global constants541.67%
▷ Class constants758.33%
▷ Public constants7100.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
FileSize - originalSize - compressedSavings
assets/img/proteo-logo.png5.03KB3.61KB▼ 28.22%