Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.36ms] Passed 4 tests
This is a short check of server-side resources used by Welight - Easy Impact
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 43.71 ▲3.50 |
Dashboard /wp-admin | 3.31 ▼0.04 | 54.33 ▼11.59 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.91 ▼0.37 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.49 ▼12.99 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 39.38 ▲5.46 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Welight - Easy Impact
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.38 ▲0.00 | 1.80 ▼0.16 | 43.39 ▼0.45 |
Dashboard /wp-admin | 2,195 ▲15 | 5.52 ▼0.19 | 99.26 ▲1.49 | 43.92 ▼1.49 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.97 ▼0.00 | 35.69 ▼0.42 | 33.27 ▼6.01 |
Add New Post /wp-admin/post-new.php | 1,549 ▲18 | 23.30 ▲0.22 | 666.93 ▼18.45 | 60.34 ▼7.73 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.23 ▲0.12 | 101.82 ▼2.54 | 43.23 ▼1.82 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% 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 everything seems fine, this is not an exhaustive test
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 fix the following items
- 17× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/welight-easy-impact/includes/admin/class-we-admin-settings.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'WC_Settings_Page' not found in wp-content/plugins/welight-easy-impact/includes/admin/class-we-admin-settings.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/welight-easy-impact/includes/class-we-abondoned-cart.php:49
- > PHP Warning
Use of undefined constant WELIGHTEI_INCLUDES_PATH - assumed 'WELIGHTEI_INCLUDES_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/welight-easy-impact/includes/we-core-functions.php on line 10
- > PHP Warning
require_once(WELIGHTEI_INCLUDES_PATHwe-api-functions.php): failed to open stream: No such file or directory in wp-content/plugins/welight-easy-impact/includes/we-core-functions.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/welight-easy-impact/includes/we-template-functions.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function welight() in wp-content/plugins/welight-easy-impact/includes/admin/class-welight-admin.php:20
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/welight-easy-impact/templates/carousel/welight-default.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function welightei_get_api_auth() in wp-content/plugins/welight-easy-impact/includes/class-we-ong.php:49
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/welight-easy-impact/templates/carousel/welight-simple.php on line 11
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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 need to be fixed:
- Screenshots: Please add an image for screenshot #1 (Configuration Screen.)
welight-easy-impact/welight-easy-impact.php 85% from 13 tests
The main file in "Welight - Easy Impact" v. 0.5.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Requires at least: Required version does not match the one declared in readme.txt ("4.7" instead of "3.1")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,667 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 24 | 437 | 1,104 | 1,405 |
CSS | 2 | 91 | 27 | 588 |
Sass | 4 | 69 | 4 | 424 |
JavaScript | 5 | 23 | 32 | 128 |
SVG | 1 | 0 | 0 | 52 |
JSON | 1 | 0 | 0 | 31 |
Markdown | 1 | 15 | 0 | 30 |
XML | 1 | 2 | 3 | 9 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 10.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 58 | |
▷ Static methods | 1 | 1.72% |
▷ Public methods | 36 | 62.07% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 37.93% |
Functions | 35 | |
▷ Named functions | 35 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 26 | |
▷ Global constants | 26 | 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.41MB with 0.26MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 419.21KB | 156.33KB | ▼ 62.71% |