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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼3.04ms] Passed 4 tests
This is a short check of server-side resources used by OfferStack
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 37.71 ▲1.16 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.45 ▲2.03 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 48.95 ▼0.23 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 81.29 ▼15.11 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 42.47 ▲9.35 |
Server storage [IO: ▲0.31MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
OfferStack: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲84 | 14.47 ▲0.17 | 2.11 ▲0.20 | 39.64 ▼9.02 |
Dashboard /wp-admin | 2,224 ▲36 | 5.82 ▼0.08 | 104.30 ▼2.18 | 60.62 ▲20.32 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.04 ▼0.01 | 36.80 ▼0.26 | 32.58 ▼3.14 |
Add New Post /wp-admin/post-new.php | 1,680 ▲150 | 22.19 ▲3.91 | 740.09 ▲123.15 | 61.89 ▲8.69 |
Media Library /wp-admin/upload.php | 1,403 ▲21 | 4.12 ▼0.10 | 102.09 ▼2.20 | 43.70 ▲1.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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 take a closer look at the following
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/clicksco-offerstack/templates/theme-1.php
- > /wp-content/plugins/clicksco-offerstack/templates/theme-default.php
- 15× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/clicksco-offerstack/templates/theme-1.php on line 72
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/clicksco-offerstack/templates/theme-1.php on line 5
- > PHP Notice
Undefined variable: is_sidebar in wp-content/plugins/clicksco-offerstack/templates/theme-default.php on line 1
- > PHP Notice
Undefined variable: is_sidebar in wp-content/plugins/clicksco-offerstack/templates/theme-1.php on line 72
- > PHP Notice
Undefined variable: is_sidebar in wp-content/plugins/clicksco-offerstack/templates/theme-1.php on line 1
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/clicksco-offerstack/templates/theme-default.php on line 7
- > PHP Warning
array_slice() expects parameter 1 to be array, null given in wp-content/plugins/clicksco-offerstack/templates/theme-1.php on line 5
- > PHP Notice
Undefined variable: max_iteams in wp-content/plugins/clicksco-offerstack/templates/theme-1.php on line 5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/clicksco-offerstack/templates/theme-default.php on line 5
- > PHP Notice
Undefined variable: offers_listing in wp-content/plugins/clicksco-offerstack/templates/theme-1.php on line 5
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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
4 plugin tags: offers, clicksco, vouchers, deals
clicksco-offerstack/offerstack.php 92% from 13 tests
The entry point to "OfferStack" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("clicksco-offerstack.php" instead of "offerstack.php")
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
There were no executable files found in this plugin4,898 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 3,749 |
Sass | 5 | 118 | 4 | 731 |
PHP | 5 | 56 | 37 | 272 |
JavaScript | 6 | 24 | 11 | 97 |
Markdown | 1 | 24 | 0 | 41 |
YAML | 1 | 0 | 0 | 6 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 7 | 87.50% |
▷ Anonymous functions | 1 | 12.50% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/assets/images/icon-256x256.png | 9.35KB | 7.78KB | ▼ 16.78% |
resources/assets/images/icon-128x128.png | 4.92KB | 3.58KB | ▼ 27.34% |
resources/assets/images/logo.png | 1.97KB | 0.23KB | ▼ 88.24% |
public/images/logo.png | 1.97KB | 0.23KB | ▼ 88.24% |