94% dkowptools

Code Review | DKO WP Tools

WordPress plugin DKO WP Tools scored 94% from 54 tests.

About plugin

  • Plugin page: dkowptools
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-3.5.2
  • WordPress version: 5.8.1
  • First release: Jul 8, 2013
  • Latest release: Jul 10, 2013
  • Number of updates: 3
  • Update frequency: every 1.7 days
  • Top authors: davidosomething (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 615 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Analyzing server-side resources used by DKO WP Tools
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.87 ▲0.1541.49 ▲20.63
Dashboard /wp-admin3.09 ▲0.0348.31 ▼3.31
Posts /wp-admin/edit.php3.18 ▲0.0742.66 ▼6.32
Add New Post /wp-admin/post-new.php5.45 ▲0.0198.24 ▼684.40
Media Library /wp-admin/upload.php3.03 ▲0.0333.97 ▲2.13

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for DKO WP Tools
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,744 ▲17216.25 ▲0.6412.34 ▲2.5354.71 ▼0.15
Dashboard /wp-admin2,986 ▲556.02 ▼0.04153.22 ▼4.97119.36 ▼15.26
Posts /wp-admin/edit.php2,755 ▲192.85 ▲0.1376.89 ▲4.7096.76 ▼5.14
Add New Post /wp-admin/post-new.php1,629 ▲4821.47 ▲0.81288.28 ▼110.02118.21 ▼0.36
Media Library /wp-admin/upload.php1,826 ▲195.05 ▲0.02168.11 ▲10.07129.89 ▲2.46

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/dkowptools/dkowptools.php:57

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 errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === dkowptools === )
You can take inspiration from this readme.txt

dkowptools/dkowptools.php Passed 13 tests

The main PHP script in "DKO WP Tools" version 0.1.0 is automatically included on every request by WordPress
36 characters long description:
Show browser resolution in admin bar

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
Everything looks great! No dangerous files found in this plugin164 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP236101163
JavaScript1011

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity8.50
▷ Minimum class complexity7.00
▷ Maximum class complexity10.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes150.00%
▷ Concrete classes150.00%
▷ Final classes00.00%
Methods16
▷ Static methods16.25%
▷ Public methods1381.25%
▷ Protected methods16.25%
▷ Private methods212.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin