Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.19MB] [CPU: ▼135.79ms] Passed 4 tests
Server-side resources used by Counter Ecl
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.02 ▲0.19 | 48.01 ▲19.23 |
Dashboard /wp-admin | 3.25 ▲0.19 | 49.35 ▲2.01 |
Posts /wp-admin/edit.php | 3.33 ▲0.23 | 46.25 ▲10.80 |
Add New Post /wp-admin/post-new.php | 5.60 ▲0.17 | 88.25 ▼561.55 |
Media Library /wp-admin/upload.php | 3.19 ▲0.19 | 37.16 ▲5.60 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 3 new options
New WordPress options |
---|
counter_ecl_time |
counter_ecl |
widget_counterecl |
Browser metrics Passed 4 tests
Checking browser requirements for Counter Ecl
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,843 ▲247 | 16.38 ▲0.75 | 21.15 ▲7.40 | 77.31 ▲31.33 |
Dashboard /wp-admin | 2,982 ▲48 | 5.95 ▼0.06 | 142.80 ▼7.04 | 129.07 ▲22.69 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.63 ▼0.08 | 68.58 ▲3.86 | 88.03 ▲1.93 |
Add New Post /wp-admin/post-new.php | 1,617 ▼53 | 18.59 ▼0.69 | 411.33 ▲14.55 | 112.30 ▲9.20 |
Media Library /wp-admin/upload.php | 1,838 ▲28 | 5.01 ▼0.03 | 145.71 ▼10.89 | 145.83 ▲33.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 3 options
- widget_counterecl
- counter_ecl
- counter_ecl_time
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 take a closer look at the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/counter-ecl/contador.php:187
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (The widget in WordPress 4.3), #2 (The Menu Counter ECL.), #3 (Message Cookie Law.)
- Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
counter-ecl/contador.php 92% from 13 tests
The main file in "Counter Ecl" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("counter-ecl.php" instead of "contador.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,077 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 161 | 105 | 845 |
PO File | 3 | 237 | 237 | 574 |
JavaScript | 1 | 116 | 11 | 427 |
CSS | 3 | 16 | 53 | 231 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 49.00 |
▷ Minimum class complexity | 49.00 |
▷ Maximum class complexity | 49.00 |
Average method complexity | 13.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 41.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.46MB with 0.42MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 156.79KB | 20.73KB | ▼ 86.78% |
screenshot-2.png | 106.65KB | 11.42KB | ▼ 89.29% |
screenshot-3.png | 157.86KB | 20.84KB | ▼ 86.80% |
images/menu-icon.png | 53.97KB | 1.19KB | ▼ 97.79% |