10% wooflare

Code Review | WooFlare

WordPress plugin WooFlare scored10%from 54 tests.

About plugin

  • Plugin page: wooflare
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-5.8
  • WordPress version: 6.3.1
  • First release: Feb 27, 2020
  • Latest release: Oct 12, 2021
  • Number of updates: 4
  • Update frequency: every 148.2 days
  • Top authors: MillerMediaNow (75%)millermediadev (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /482 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wooflare/classes/Plugin.php+471
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.84MB] [CPU: ▼48.79ms] Passed 4 tests

Analyzing server-side resources used by WooFlare
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.327.41 ▼29.97
Dashboard /wp-admin2.17 ▼1.147.65 ▼39.55
Posts /wp-admin/edit.php2.17 ▼1.196.63 ▼37.43
Add New Post /wp-admin/post-new.php2.17 ▼3.727.71 ▼88.19
Media Library /wp-admin/upload.php2.17 ▼1.067.85 ▼25.31

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

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

Browser metrics Passed 4 tests

WooFlare: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,821 ▲7514.45 ▲0.181.83 ▲0.3443.57 ▲2.59
Dashboard /wp-admin2,215 ▲355.58 ▼0.0785.08 ▼1.2075.07 ▲30.55
Posts /wp-admin/edit.php2,136 ▲362.01 ▼0.0036.05 ▲2.1332.25 ▼3.36
Add New Post /wp-admin/post-new.php1,709 ▲18121.97 ▼1.03718.03 ▲80.2449.22 ▼4.98
Media Library /wp-admin/upload.php1,429 ▲354.14 ▼0.0895.18 ▼2.6081.31 ▲37.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/wooflare/classes/Plugin.php+471
    Trying to access array offset on value of type bool
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 50% from 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 0% 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 fix the following items
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wooflare/classes/Helpers.php
    • > /wp-content/plugins/wooflare/classes/SiteSettings.php
    • > /wp-content/plugins/wooflare/classes/CloudflareAPIController.php
    • > /wp-content/plugins/wooflare/classes/Plugin.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WOOCF_SiteSettings' not found in wp-content/plugins/wooflare/views/SiteSettingsView.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wooflare/wooflare.php:61

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: sales, category, speed, product, cloudflare...

wooflare/wooflare.php 92% from 13 tests

Analyzing the main PHP file in "WooFlare" version 1.0.0
Please take the time to fix the following:
  • Requires at least: Required version must match the one declared in readme.txt ("3.0" instead of "3.3.0")

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
No dangerous file extensions were detected889 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP6157382755
JavaScript113772
CSS15162

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity26.75
▷ Minimum class complexity6.00
▷ Maximum class complexity49.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods3597.22%
▷ Protected methods00.00%
▷ Private methods12.78%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
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
assets/media/cf-facebook-card.png1.30KB0.44KB▼ 65.84%