90% themezee-toolkit

Code Review | ThemeZee Toolkit

WordPress plugin ThemeZee Toolkit scored90%from 54 tests.

About plugin

  • Plugin page: themezee-toolkit
  • Plugin version: 1.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.8
  • WordPress version: 6.3.1
  • First release: Oct 20, 2015
  • Latest release: Jun 6, 2021
  • Number of updates: 17
  • Update frequency: every 120.9 days
  • Top authors: ThemeZee (100%)

Code review

54 tests

User reviews

1 review

Install metrics

9,000+ active /140,496 total downloads

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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.42ms] Passed 4 tests

A check of server-side resources used by ThemeZee Toolkit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0246.88 ▲7.02
Dashboard /wp-admin3.33 ▲0.0350.04 ▼2.95
Posts /wp-admin/edit.php3.44 ▲0.0945.50 ▼3.91
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.41 ▼16.10
Media Library /wp-admin/upload.php3.25 ▲0.0238.45 ▲1.27
ThemeZee Plugins /wp-admin/options-general.php?page=themezee-plugins3.2229.34

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
tztk_settings
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by ThemeZee Toolkit
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲5714.36 ▲0.092.47 ▲0.8945.08 ▼0.23
Dashboard /wp-admin2,202 ▲255.62 ▲0.0285.06 ▼10.2838.37 ▼3.44
Posts /wp-admin/edit.php2,101 ▲12.01 ▲0.0437.36 ▲0.4032.73 ▼2.97
Add New Post /wp-admin/post-new.php1,529 ▲322.92 ▼0.72657.15 ▼30.2255.19 ▼5.62
Media Library /wp-admin/upload.php1,407 ▲74.23 ▲0.0396.80 ▼10.3941.98 ▼1.70
ThemeZee Plugins /wp-admin/options-general.php?page=themezee-plugins8451.9822.6432.47

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • Zombie WordPress options detected upon uninstall: 7 options
    • tztk_settings
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: widget visibility, widget logic, infinite scroll, header scripts, toolkit...

themezee-toolkit/themezee-toolkit.php 92% from 13 tests

This is the main PHP file of "ThemeZee Toolkit" version 1.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 206 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin2,710 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP64798941,505
JavaScript4225240830
CSS65165375

PHP code Passed 2 tests

This is a very shot 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.58
Average class complexity63.17
▷ Minimum class complexity1.00
▷ Maximum class complexity191.00
Average method complexity5.78
▷ Minimum method complexity1.00
▷ Maximum method complexity76.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods78
▷ Static methods3747.44%
▷ Public methods7596.15%
▷ Protected methods00.00%
▷ Private methods33.85%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin