89% deliverables

Code Review | Deliverables

WordPress plugin Deliverables scored89%from 54 tests.

About plugin

  • Plugin page: deliverables
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 9, 2018
  • Latest release: Mar 21, 2022
  • Number of updates: 6
  • Update frequency: every 207.2 days
  • Top authors: therightsw (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /603 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼4.94ms] Passed 4 tests

Analyzing server-side resources used by Deliverables
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.85 ▼2.54
Dashboard /wp-admin3.31 ▲0.0050.42 ▼2.99
Posts /wp-admin/edit.php3.36 ▲0.0053.87 ▼0.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.49 ▼8.85
Media Library /wp-admin/upload.php3.23 ▲0.0035.40 ▼5.36

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Deliverables
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.071.80 ▲0.1544.82 ▼11.02
Dashboard /wp-admin2,198 ▲215.65 ▼0.0489.54 ▼12.4541.04 ▼4.78
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0241.25 ▲3.4134.99 ▼3.75
Add New Post /wp-admin/post-new.php1,525 ▼123.74 ▲0.14679.53 ▼11.1064.44 ▲9.35
Media Library /wp-admin/upload.php1,403 ▲34.19 ▼0.0099.15 ▼11.6345.06 ▼1.45

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 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 Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: There are too many tags (11 tag instead of maximum 10)
  • Screenshots: Screenshot #1 (This is how plugin looks at back-end) image required
The official readme.txt might help

deliverables/deliverables.php 92% from 13 tests

The principal PHP file in "Deliverables" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 246 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin16,555 lines of code in 40 files:
LanguageFilesBlank linesComment linesLines of code
CSS88557,985
JavaScript121,3421,1435,256
PHP175907052,997
SVG100288
Markdown19020
HTML1309

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity12.40
▷ Minimum class complexity10.00
▷ Maximum class complexity16.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods49
▷ Static methods00.00%
▷ Public methods49100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
31 PNG files occupy 0.72MB with 0.35MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/main.png15.81KB4.15KB▼ 73.77%
assets/add-items.png38.39KB10.56KB▼ 72.49%
images/plus--.png0.52KB0.47KB▼ 9.93%
images/order-detail.png25.80KB8.62KB▼ 66.61%
images/home_w.png1.72KB1.38KB▼ 20.05%