84% woo-wolly-one-time-buy

Code Review | Woo Wolly One Time Buy

WordPress plugin Woo Wolly One Time Buy scored84%from 54 tests.

About plugin

  • Plugin page: woo-wolly-one-tim...
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 6.3.1
  • First release: Jul 24, 2017
  • Latest release: Jul 10, 2021
  • Number of updates: 8
  • Update frequency: every 181.0 days
  • Top authors: wolly (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

600+ active /4,419 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.15MB] [CPU: ▼8.98ms] Passed 4 tests

A check of server-side resources used by Woo Wolly One Time Buy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▼0.6116.67 ▼23.98
Dashboard /wp-admin3.31 ▲0.0145.37 ▼2.70
Posts /wp-admin/edit.php3.36 ▲0.0148.55 ▲4.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0189.10 ▼10.09
Media Library /wp-admin/upload.php3.23 ▲0.0130.88 ▲0.84

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Woo Wolly One Time Buy
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,456 ▼29013.69 ▼0.680.49 ▼1.2217.94 ▼26.34
Dashboard /wp-admin2,206 ▲185.85 ▼0.01111.21 ▲6.5640.79 ▲1.45
Posts /wp-admin/edit.php2,086 ▼62.03 ▼0.0239.54 ▲0.3133.11 ▼2.39
Add New Post /wp-admin/post-new.php1,514 ▼517.61 ▼5.57638.54 ▲20.4961.52 ▲9.82
Media Library /wp-admin/upload.php1,388 ▲34.16 ▼0.0498.84 ▲1.5743.45 ▼0.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 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 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woo-wolly-one-time-buy/woo-wolly-one-time-buy.php:43

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 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
1 plugin tags: woocommerce

woo-wolly-one-time-buy/woo-wolly-one-time-buy.php 92% from 13 tests

The entry point to "Woo Wolly One Time Buy" version 1.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected66 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2699566

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin