90% pofw-option-description

Code Review | POFW Option Description

WordPress plugin POFW Option Description scored90%from 54 tests.

About plugin

  • Plugin page: pofw-option-descr...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1.1
  • WordPress version: 6.3.1
  • First release: May 13, 2020
  • Latest release: Mar 22, 2023
  • Number of updates: 3
  • Update frequency: every 348.0 days
  • Top authors: pektsekye (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /418 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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by POFW Option Description
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.73 ▲0.0041.87 ▼2.61
Dashboard /wp-admin3.57 ▲0.0053.86 ▼5.43
Posts /wp-admin/edit.php3.68 ▲0.0053.04 ▼1.79
Add New Post /wp-admin/post-new.php6.15 ▲0.0092.13 ▼6.17
Media Library /wp-admin/upload.php3.49 ▲0.0039.88 ▼0.70

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by POFW Option Description
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.25 ▼0.121.76 ▼0.2337.93 ▼8.25
Dashboard /wp-admin2,195 ▲155.60 ▼0.1390.57 ▼7.1437.97 ▼10.77
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0440.73 ▲2.5234.83 ▲0.82
Add New Post /wp-admin/post-new.php1,545 ▼923.28 ▼0.06666.25 ▼19.5053.62 ▼4.02
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.08103.20 ▼19.7144.00 ▼8.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
2 plugin tags: product options, option description

pofw-option-description/pofw-option-description.php Passed 13 tests

The principal PHP file in "POFW Option Description" v. 1.0.0 is loaded by WordPress automatically on each request
85 characters long description:
Adds descriptions to product options of the "Product Options for WooCommerce" plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin763 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP1222419565
JavaScript2490151
CSS312347

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.36
Average class complexity8.89
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.45
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods49
▷ Static methods48.16%
▷ Public methods4591.84%
▷ Protected methods00.00%
▷ Private methods48.16%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin