10% woodpd

Code Review | WooDPD

WordPress plugin WooDPD scored10%from 54 tests.

About plugin

  • Plugin page: woodpd
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.0
  • WordPress version: 6.3.1
  • First release: Nov 10, 2014
  • Latest release: Nov 10, 2014
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: grendelccl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,055 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/woodpd/woodpd.php+207
    Methods with the same name as their class will not be constructors in a future version of PHP; WooDPD_Cart has a deprecated constructor

Server metrics [RAM: ▼1.90MB] [CPU: ▼62.35ms] Passed 4 tests

A check of server-side resources used by WooDPD
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.90 ▼39.87
Dashboard /wp-admin2.12 ▼1.235.88 ▼62.40
Posts /wp-admin/edit.php2.12 ▼1.247.45 ▼45.86
Add New Post /wp-admin/post-new.php2.12 ▼3.778.55 ▼101.27
Media Library /wp-admin/upload.php2.12 ▼1.116.30 ▼33.27

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

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

Browser metrics Passed 4 tests

A check of browser resources used by WooDPD
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.32 ▼0.031.71 ▼0.3443.43 ▲2.48
Dashboard /wp-admin2,192 ▲125.55 ▼0.0687.10 ▲0.5039.36 ▼7.58
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0135.49 ▼6.6937.21 ▼0.43
Add New Post /wp-admin/post-new.php1,526 ▼223.20 ▲0.31680.59 ▲11.0553.78 ▲0.50
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0298.41 ▼13.4140.90 ▼5.84

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/woodpd/woodpd.php+207
    Methods with the same name as their class will not be constructors in a future version of PHP; WooDPD_Cart has a deprecated constructor
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Admin options), #2 (Product options)
  • Tags: You are using too many tags: 13 tag instead of maximum 10
The official readme.txt might help

woodpd/woodpd.php Passed 13 tests

This is the main PHP file of "WooDPD" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
38 characters long description:
DPD cart and purchases for WooCommerce

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin246 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25355246

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity9.50
▷ Minimum class complexity4.00
▷ Maximum class complexity15.00
Average method complexity2.60
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png31.04KB13.76KB▼ 55.65%
assets/screenshot-2.png28.29KB11.76KB▼ 58.45%