94% dishsoap

Code Review | DishSoap

WordPress plugin DishSoap scored 94% from 54 tests.

About plugin

  • Plugin page: dishsoap
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.8
  • WordPress version: 5.8.1
  • First release: Dec 29, 2012
  • Latest release: Dec 31, 2013
  • Number of updates: 12
  • Update frequency: every 30.6 days
  • Top authors: markthomes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

30+ active / 1,651 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.29MB] [CPU: ▼152.29ms] Passed 4 tests

This is a short check of server-side resources used by DishSoap
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.88 ▲0.1641.09 ▲21.02
Dashboard /wp-admin3.11 ▲0.0551.18 ▲2.48
Posts /wp-admin/edit.php3.19 ▲0.0846.56 ▼10.34
Add New Post /wp-admin/post-new.php4.09 ▼1.3448.77 ▼604.65
Media Library /wp-admin/upload.php3.05 ▲0.0537.32 ▲3.36

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for DishSoap
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,706 ▲6915.75 ▲0.1310.75 ▲0.3552.11 ▲6.69
Dashboard /wp-admin2,970 ▲395.92 ▼0.03151.13 ▼0.51121.74 ▼0.94
Posts /wp-admin/edit.php2,742 ▲62.69 ▲0.0070.07 ▼3.1985.83 ▼17.61
Add New Post /wp-admin/post-new.php2,226 ▲63524.09 ▲5.28383.50 ▲8.72130.55 ▲21.83
Media Library /wp-admin/upload.php1,810 ▲34.99 ▼0.03148.74 ▲0.11132.09 ▲7.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dishsoap/dishsoap.php:42

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)
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

dishsoap/dishsoap.php 92% from 13 tests

"DishSoap" version 1.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 174 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
Everything looks great! No dangerous files found in this plugin301 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1102119252
CSS18049

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected