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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.15 ▼1.32 | 7.41 ▼29.97 |
Dashboard /wp-admin | 2.17 ▼1.14 | 7.65 ▼39.55 |
Posts /wp-admin/edit.php | 2.17 ▼1.19 | 6.63 ▼37.43 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.72 | 7.71 ▼88.19 |
Media Library /wp-admin/upload.php | 2.17 ▼1.06 | 7.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲75 | 14.45 ▲0.18 | 1.83 ▲0.34 | 43.57 ▲2.59 |
Dashboard /wp-admin | 2,215 ▲35 | 5.58 ▼0.07 | 85.08 ▼1.20 | 75.07 ▲30.55 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.01 ▼0.00 | 36.05 ▲2.13 | 32.25 ▼3.36 |
Add New Post /wp-admin/post-new.php | 1,709 ▲181 | 21.97 ▼1.03 | 718.03 ▲80.24 | 49.22 ▼4.98 |
Media Library /wp-admin/upload.php | 1,429 ▲35 | 4.14 ▼0.08 | 95.18 ▼2.60 | 81.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 157 | 382 | 755 |
JavaScript | 1 | 13 | 7 | 72 |
CSS | 1 | 5 | 1 | 62 |
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 code | 0.52 |
Average class complexity | 26.75 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 36 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 97.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.78% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/media/cf-facebook-card.png | 1.30KB | 0.44KB | ▼ 65.84% |