84% woot-library

Code Review | Woot Library

WordPress plugin Woot Library scored84%from 54 tests.

About plugin

  • Plugin page: woot-library
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6.1
  • WordPress version: 6.3.1
  • First release: Oct 8, 2013
  • Latest release: Jul 29, 2014
  • Number of updates: 13
  • Update frequency: every 22.6 days
  • Top authors: WebsiteBakery (76.92%)barry.hughes (30.77%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,673 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Server-side resources used by Woot Library
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0031.16 ▼7.23
Dashboard /wp-admin3.31 ▲0.0042.43 ▼9.72
Posts /wp-admin/edit.php3.36 ▲0.0046.94 ▲0.59
Add New Post /wp-admin/post-new.php5.89 ▲0.0074.69 ▼37.90
Media Library /wp-admin/upload.php3.23 ▲0.0032.46 ▼1.94

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Woot Library
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.25 ▼1.124.48 ▲2.5839.96 ▼0.54
Dashboard /wp-admin2,209 ▲184.88 ▼0.04120.42 ▲17.8842.87 ▲3.07
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0034.87 ▼6.6232.58 ▼4.45
Add New Post /wp-admin/post-new.php1,538 ▲1022.98 ▲4.74682.83 ▲37.8961.08 ▲7.77
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0393.57 ▼14.0542.11 ▼5.33

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • 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)
Good news, no errors were detected

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
Please take a closer look at 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/woot-library/woot-library.php:24

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: helper library, customize, events, tickets

woot-library/woot-library.php Passed 13 tests

"Woot Library" version 1.3's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
110 characters long description:
Simple helper library - to help you build customizations relating to your WooCommerce Tickets powered website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected149 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP349210134
Markdown15015

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.57
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity4.86
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods571.43%
▷ Protected methods228.57%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin