84% dezo-tools

Code Review | Dezo Tools

WordPress plugin Dezo Tools scored84%from 54 tests.

About plugin

  • Plugin page: dezo-tools
  • Plugin version: 0.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Jun 21, 2016
  • Latest release: Sep 27, 2018
  • Number of updates: 5
  • Update frequency: every 165.6 days
  • Top authors: dezodev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /823 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.12MB] [CPU: ▼5.70ms] Passed 4 tests

An overview of server-side resources used by Dezo Tools
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1244.50 ▲0.85
Dashboard /wp-admin3.43 ▲0.1252.67 ▼2.48
Posts /wp-admin/edit.php3.54 ▲0.1849.05 ▼10.26
Add New Post /wp-admin/post-new.php6.01 ▲0.1289.41 ▼10.89
Media Library /wp-admin/upload.php3.35 ▲0.1240.31 ▲7.52

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 28 new files
Database: no new tables, 13 new options
New WordPress options
can_compress_scripts
dezo-custom-header
db_upgraded
dezo-disable-emojis
widget_recent-comments
dezo-hide-wp-header-details
theysaidso_admin_options
dezo-enable-html-minify
widget_theysaidso_widget
dezo-custom-footer
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dezo Tools
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲8713.28 ▼1.081.74 ▲0.0143.40 ▼3.02
Dashboard /wp-admin2,254 ▲484.91 ▼0.14111.70 ▲1.3343.42 ▼3.10
Posts /wp-admin/edit.php2,133 ▲332.04 ▲0.0040.84 ▲2.1434.56 ▼1.74
Add New Post /wp-admin/post-new.php1,538 ▼217.63 ▼0.64708.74 ▲60.5166.93 ▲5.86
Media Library /wp-admin/upload.php1,433 ▲334.25 ▲0.01102.84 ▼7.9844.96 ▼0.79

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
The following items require your attention
  • This plugin does not fully uninstall, leaving 13 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • dezo-ganalytics-id
    • dezo-enable-lightbox
    • dezo-disable-emojis
    • dezo-hide-wp-header-details
    • widget_recent-posts
    • dezo-enable-html-minify
    • can_compress_scripts
    • dezo-custom-header
    • ...

Smoke tests 75% 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)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/dezo-tools/includes/admin/templates/main.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 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
2 plugin tags: all-in-one, tools

dezo-tools/dezo-tools.php 92% from 13 tests

The entry point to "Dezo Tools" version 0.2.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Domain Path: The domain path points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin1,574 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34228516
PHP7117163460
Sass1271268
CSS4532263
LESS2131431
Markdown113026
CoffeeScript1226
SVG1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity6.00
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods46
▷ Static methods48.70%
▷ Public methods3984.78%
▷ Protected methods00.00%
▷ Private methods715.22%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin