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 gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.90ms] Passed 4 tests
Server-side resources used by Counter Up - Animated Number Counter & Milestone Showcase
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 34.46 ▼8.56 |
Dashboard /wp-admin | 3.42 ▲0.07 | 50.00 ▼12.01 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 55.28 ▲13.22 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 90.57 ▼3.57 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 35.68 ▲0.53 |
All Item /wp-admin/edit.php?post_type=lgx_counter | 3.39 | 39.34 |
Shortcode Generator /wp-admin/edit.php?post_type=lgx_wcu_generator | 3.39 | 38.36 |
Add Item /wp-admin/post-new.php?post_type=lgx_counter | 3.52 | 50.23 |
Usage & Help /wp-admin/edit.php?post_type=lgx_counter&page=lgx_counter_help_usage | 3.36 | 40.37 |
Categories /wp-admin/edit-tags.php?taxonomy=lgxcountercat&post_type=lgx_counter | 3.46 | 39.29 |
Server storage [IO: ▲1.70MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Counter Up - Animated Number Counter & Milestone Showcase
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,996 ▲249 | 14.63 ▲0.29 | 1.51 ▼0.25 | 39.34 ▼4.64 |
Dashboard /wp-admin | 2,398 ▲223 | 6.33 ▲0.71 | 121.03 ▲1.70 | 42.42 ▼4.87 |
Posts /wp-admin/edit.php | 2,323 ▲223 | 3.48 ▲1.47 | 60.33 ▲23.60 | 34.54 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,736 ▲210 | 22.57 ▲1.39 | 628.42 ▼72.05 | 31.33 ▼22.81 |
Media Library /wp-admin/upload.php | 1,460 ▲57 | 4.32 ▲0.12 | 79.49 ▼21.21 | 40.00 ▼2.46 |
All Item /wp-admin/edit.php?post_type=lgx_counter | 1,322 | 3.61 | 75.83 | 28.82 |
Shortcode Generator /wp-admin/edit.php?post_type=lgx_wcu_generator | 1,311 | 3.68 | 52.52 | 28.65 |
Add Item /wp-admin/post-new.php?post_type=lgx_counter | 1,876 | 3.84 | 70.44 | 38.16 |
Usage & Help /wp-admin/edit.php?post_type=lgx_counter&page=lgx_counter_help_usage | 1,350 | 3.25 | 43.40 | 91.06 |
Categories /wp-admin/edit-tags.php?taxonomy=lgxcountercat&post_type=lgx_counter | 1,503 | 3.39 | 45.02 | 31.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for 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 take a closer look at the following
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-counter-up/admin/partials/shortcode_meta_display/__meta_section_get_pro.php
- > /wp-content/plugins/wp-counter-up/admin/partials/wp-counter-up-admin-display.php
- > /wp-content/plugins/wp-counter-up/public/partials/wp-counter-up-public-display.php
- > /wp-content/plugins/wp-counter-up/admin/partials/shortcode_meta_display/__meta_section_help_block.php
- 82× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-counter-up/public/partials/view-controller.php on line 71
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-counter-up/public/partials/view-controller.php on line 28
- > PHP Notice
Undefined variable: post in wp-content/plugins/wp-counter-up/admin/partials/shortcode_meta_display/__meta_section_help_block.php on line 19
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-counter-up/public/partials/view-controller.php on line 54
- > PHP Notice
Undefined variable: lgx_generator_meta in wp-content/plugins/wp-counter-up/public/partials/view-controller.php on line 54
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-counter-up/public/partials/view-controller.php on line 63
- > PHP Notice
Undefined variable: lgx_generator_meta in wp-content/plugins/wp-counter-up/public/partials/view-controller.php on line 76
- > PHP Warning
Use of undefined constant LGX_WCU_PLUGIN_META_FIELD_PRO - assumed 'LGX_WCU_PLUGIN_META_FIELD_PRO' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-counter-up/admin/partials/shortcode_meta_display/__meta_section_get_pro.php on line 7
- > PHP Notice
Undefined variable: lgx_generator_meta in wp-content/plugins/wp-counter-up/public/partials/template/view-default.php on line 9
- > PHP Notice
Undefined variable: lgx_generator_meta in wp-content/plugins/wp-counter-up/public/partials/view-controller.php on line 73
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Tags: You are using too many tags: 14 tag instead of maximum 10
wp-counter-up/wp-counter-up.php Passed 13 tests
Analyzing the main PHP file in "Counter Up - Animated Number Counter & Milestone Showcase" version 2.2.1
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected8,731 lines of code in 61 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 39 | 1,351 | 1,227 | 3,636 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 8 | 7 | 25 | 1,317 |
JavaScript | 12 | 327 | 706 | 1,106 |
HTML | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 106)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 45.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 4.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 106.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 2 | 2.06% |
▷ Public methods | 91 | 93.81% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 6.19% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/ls-logo.png | 0.97KB | 0.11KB | ▼ 88.59% |
public/assets/img/prev.png | 1.32KB | 0.63KB | ▼ 52.22% |
public/assets/img/prev-m.png | 1.27KB | 0.57KB | ▼ 55.08% |
public/assets/img/next-m.png | 1.26KB | 0.57KB | ▼ 54.83% |
admin/img/lgx-logo-metabox3.png | 3.80KB | 1.81KB | ▼ 52.46% |