84% zen-toolkit

Code Review | Zen Toolkit

WordPress plugin Zen Toolkit scored84%from 54 tests.

About plugin

  • Plugin page: zen-toolkit
  • Plugin version: 1.0.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: May 21, 2019
  • Latest release: Sep 19, 2019
  • Number of updates: 13
  • Update frequency: every 9.3 days
  • Top authors: manish_gori (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /4,088 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.76ms] Passed 4 tests

An overview of server-side resources used by Zen Toolkit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0034.70 ▼7.39
Dashboard /wp-admin3.31 ▲0.0051.64 ▲4.41
Posts /wp-admin/edit.php3.36 ▲0.0056.35 ▲4.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.36 ▼21.22
Media Library /wp-admin/upload.php3.23 ▲0.0039.49 ▲1.15

Server storage [IO: ▲1.17MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Zen Toolkit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.38 ▲0.021.83 ▼0.1840.85 ▲0.25
Dashboard /wp-admin2,189 ▲95.49 ▼0.1882.90 ▼4.7835.93 ▼9.34
Posts /wp-admin/edit.php2,103 ▲62.01 ▲0.0453.94 ▲17.1547.66 ▲10.53
Add New Post /wp-admin/post-new.php1,526 ▼023.41 ▼0.10684.47 ▼20.9351.44 ▼0.51
Media Library /wp-admin/upload.php1,400 ▲34.21 ▲0.06108.25 ▼5.4047.24 ▼3.20

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
  • 25× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zen-toolkit/includes/uncover/elements/element-slider-section.php:178
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/zen-toolkit/includes/arenabiz/sections/arenabiz-slider-section.php:107
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/zen-toolkit/includes/arenabiz/sections/arenabiz-testimonial-section.php:73
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zen-toolkit/includes/arenabiz/elements/element-portfolio-section.php:152
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/zen-toolkit/zen-toolkit.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zen-toolkit/includes/arenabiz/elements/element-sliderbar-section.php:95
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zen-toolkit/includes/arenabiz/elements/element-sliderpro-section.php:178
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zen-toolkit/includes/uncover/customizer.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zen-toolkit/includes/uncover/elements/element-about-section.php:152
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zen-toolkit/includes/arenabiz/elements/element-cta-section.php:94

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: toolkit, theme, arenabiz

zen-toolkit/zen-toolkit.php Passed 13 tests

The main PHP script in "Zen Toolkit" version 1.0.5 is automatically included on every request by WordPress
60 characters long description:
zen-toolkit is a companion for WordPress themes by ThemesZen

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin7,012 lines of code in 28 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
Sass1002,337
PHP25421882,003
CSS1031

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected