84% woobox

Code Review | Woobox

WordPress plugin Woobox scored84%from 54 tests.

About plugin

  • Plugin page: woobox
  • Plugin version: 1.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.0
  • WordPress version: 6.3.1
  • First release: May 18, 2016
  • Latest release: Jun 27, 2022
  • Number of updates: 14
  • Update frequency: every 160.9 days
  • Top authors: woobox (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

1,000+ active /22,971 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Woobox
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.15 ▼6.18
Dashboard /wp-admin3.32 ▼0.0343.06 ▼20.55
Posts /wp-admin/edit.php3.37 ▲0.0144.31 ▼0.42
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.61 ▼12.37
Media Library /wp-admin/upload.php3.24 ▲0.0132.70 ▲0.79

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Woobox
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.48 ▲0.301.59 ▼0.3040.37 ▼2.94
Dashboard /wp-admin2,206 ▲184.86 ▼1.04107.30 ▼0.1342.74 ▲2.23
Posts /wp-admin/edit.php2,092 ▲32.04 ▲0.0439.68 ▲3.7536.30 ▲2.78
Add New Post /wp-admin/post-new.php1,542 ▲2818.42 ▲0.97607.56 ▼70.1250.87 ▼4.62
Media Library /wp-admin/upload.php1,385 ▼34.21 ▲0.0296.06 ▼6.0142.22 ▼5.85

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/woobox/woobox.php:40

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 15 tag instead of maximum 10
You can take inspiration from this readme.txt

woobox/woobox.php Passed 13 tests

This is the main PHP file of "Woobox" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
73 characters long description:
Embed Woobox promotions using a shortcode. Usage: [woobox offer='abcdef']

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected62 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript23137
PHP16925

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.67
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.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

PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
woobox_tinymce_icon.png0.39KB0.23KB▼ 41.83%