78% themebeez-toolkit

Code Review | Themebeez Toolkit

WordPress plugin Themebeez Toolkit scored 78% from 54 tests.

About plugin

  • Plugin page: themebeez-toolkit
  • Plugin version: 1.2.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 13, 2018
  • Latest release: Jul 27, 2023
  • Number of updates: 32
  • Update frequency: every 54.6 days
  • Top authors: themebeez (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10,000+ active / 229,309 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.73ms] Passed 4 tests

A check of server-side resources used by Themebeez Toolkit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0342.01 ▼1.98
Dashboard /wp-admin4.80 ▲1.4947.65 ▲3.45
Posts /wp-admin/edit.php3.43 ▲0.0848.46 ▼0.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.25 ▼16.10
Media Library /wp-admin/upload.php3.24 ▲0.0235.65 ▼0.74

Server storage [IO: ▲1.62MB] [DB: ▲0.37MB] Passed 3 tests

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 102 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Themebeez Toolkit
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,932 ▲17513.53 ▼1.121.76 ▼0.3743.22 ▼5.27
Dashboard /wp-admin2,341 ▲1504.92 ▼0.98105.55 ▲5.4437.50 ▼2.93
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0336.75 ▼3.3930.90 ▼3.75
Add New Post /wp-admin/post-new.php1,518 ▼2423.39 ▲5.30663.59 ▲63.6348.13 ▼10.51
Media Library /wp-admin/upload.php1,392 ▲44.25 ▼0.02106.92 ▲9.2146.36 ▲1.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/themebeez-toolkit/admin/partials/themebeez-toolkit-admin-display.php
  • 28× 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/themebeez-toolkit/includes/theme-info/configs/cream-magazine-config.php:151
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themebeez-toolkit/includes/theme-info/configs/one-hive-config.php:216
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themebeez-toolkit/includes/theme-info/configs/cream-blog-config.php:157
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themebeez-toolkit/includes/theme-info/configs/orchid-store-config.php:164
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/themebeez-toolkit/includes/simple-mega-menu/class-simple-mega-menu-nav-walker.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'Simple_Mega_Menu_Walker_Nav_Menu_Edit' not found in wp-content/plugins/themebeez-toolkit/includes/simple-mega-menu/class-simple-mega-menu-nav-walker-edit.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/themebeez-toolkit/includes/simple-mega-menu/class-simple-mega-menu-walker-filter.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themebeez-toolkit/includes/simple-mega-menu/icon-fonts.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/themebeez-toolkit/includes/theme-info/configs/royale-news-pro-config.php:105
    • > PHP Fatal error
      Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/themebeez-toolkit/includes/simple-mega-menu/class-simple-mega-menu-walker-nav-menu-edit.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: menus, themebeez, demo, import, themes...

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

The entry point to "Themebeez Toolkit" version 1.2.6 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 160 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin13,175 lines of code in 88 files:
LanguageFilesBlank linesComment linesLines of code
PHP762,1752,9167,534
CSS5829222,682
SVG1002,671
JavaScript44961155
Markdown129087
JSON10046

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity16.48
▷ Minimum class complexity1.00
▷ Maximum class complexity262.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes50
▷ Abstract classes12.00%
▷ Concrete classes4998.00%
▷ Final classes24.08%
Methods283
▷ Static methods6924.38%
▷ Public methods20873.50%
▷ Protected methods3512.37%
▷ Private methods4014.13%
Functions33
▷ Named functions3090.91%
▷ Anonymous functions39.09%
Constants10
▷ Global constants880.00%
▷ Class constants220.00%
▷ Public constants2100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/theme-info/images/themebeez.png7.89KB3.15KB▼ 60.08%