Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼8.39ms] Passed 4 tests
This is a short check of server-side resources used by Elespare - News, Magazine and Blog Addons for Elementor (Free Widgets, Templates and Header/Footer Builder)
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 38.13 ▼1.93 |
Dashboard /wp-admin | 3.45 ▲0.10 | 46.48 ▼22.55 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 49.28 ▲0.92 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 84.54 ▼9.98 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 40.60 ▲3.70 |
Getting Started /wp-admin/admin.php?page=elespare_dashboard | 3.33 | 30.59 |
Server storage [IO: ▲4.93MB] [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: 203 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
elespare_upgrade_notice_start_time |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Elespare - News, Magazine and Blog Addons for Elementor (Free Widgets, Templates and Header/Footer Builder)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,877 ▲131 | 13.25 ▼1.05 | 1.88 ▲0.01 | 45.18 ▲2.94 |
Dashboard /wp-admin | 2,283 ▲95 | 5.84 ▼0.02 | 97.32 ▼21.97 | 41.25 ▼3.94 |
Posts /wp-admin/edit.php | 2,165 ▲76 | 2.08 ▲0.02 | 38.86 ▼0.94 | 35.99 ▲1.12 |
Add New Post /wp-admin/post-new.php | 1,564 ▲50 | 23.53 ▲5.86 | 695.13 ▲14.87 | 60.42 ▼2.68 |
Media Library /wp-admin/upload.php | 1,468 ▲83 | 4.23 ▼0.02 | 98.30 ▼2.31 | 42.69 ▼1.89 |
Getting Started /wp-admin/admin.php?page=elespare_dashboard | 1,621 | 2.02 | 27.47 | 73.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- elespare_upgrade_notice_start_time
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/elespare/inc/init.php
- 16× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function reviewnews_get_option() in wp-content/plugins/elespare/header-footer/templates/compat/reviewnews.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function morenews_get_option() in wp-content/plugins/elespare/header-footer/templates/compat/morenews.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function chromenews_get_option() in wp-content/plugins/elespare/header-footer/templates/compat/chromenews.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function the_content() in wp-content/plugins/elespare/header-footer/templates/content/content-header.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/elespare/header-footer/templates/compat/elespare.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function the_content() in wp-content/plugins/elespare/header-footer/templates/content/content-footer.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function darknews_get_option() in wp-content/plugins/elespare/header-footer/templates/compat/darknews.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function covernews_get_option() in wp-content/plugins/elespare/header-footer/templates/compat/covernews.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/elespare/header-footer/templates/default/header.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function language_attributes() in wp-content/plugins/elespare/header-footer/templates/hf.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please delete some tags, you are using 19 tag instead of maximum 10
elespare/elespare.php Passed 13 tests
The entry point to "Elespare - News, Magazine and Blog Addons for Elementor (Free Widgets, Templates and Header/Footer Builder)" version 2.0.3 is a PHP file that has certain tags in its header comment area
96 characters long description:
News, Magazine and Blog Addons for Elementor (Free Widgets, Templates and Header/Footer Builder)
Code Analysis 97% from 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 plugin47,030 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 56 | 3,846 | 2,129 | 22,572 |
CSS | 7 | 1,242 | 66 | 18,024 |
JavaScript | 10 | 1,019 | 906 | 3,946 |
Sass | 1 | 33 | 21 | 1,605 |
SVG | 34 | 0 | 25 | 520 |
JSON | 49 | 0 | 0 | 363 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 241)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 20.66 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 251.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 241.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 38 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 38 | 100.00% |
▷ Final classes | 1 | 2.63% |
Methods | 392 | |
▷ Static methods | 16 | 4.08% |
▷ Public methods | 209 | 53.32% |
▷ Protected methods | 84 | 21.43% |
▷ Private methods | 99 | 25.26% |
Functions | 34 | |
▷ Named functions | 30 | 88.24% |
▷ Anonymous functions | 4 | 11.76% |
Constants | 9 | |
▷ Global constants | 5 | 55.56% |
▷ Class constants | 4 | 44.44% |
▷ Public constants | 4 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
9 PNG files occupy 0.76MB with 0.33MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/admin/svg/elespare-responsive.png | 324.41KB | 102.07KB | ▼ 68.54% |
header-footer/inc/admin/svg/elespare1.png | 21.47KB | 19.22KB | ▼ 10.51% |
header-footer/elespare.png | 21.47KB | 19.22KB | ▼ 10.51% |
header-footer/inc/admin/svg/elespare-responsive.png | 324.41KB | 102.07KB | ▼ 68.54% |
inc/admin/svg/elespare.png | 22.61KB | 9.14KB | ▼ 59.55% |