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.39MB] [CPU: ▼4.51ms] Passed 4 tests
Analyzing server-side resources used by Leospeed
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.85 ▲0.39 | 44.87 ▲8.31 |
Dashboard /wp-admin | 3.74 ▲0.40 | 53.99 ▼3.34 |
Posts /wp-admin/edit.php | 3.79 ▲0.44 | 48.89 ▲1.33 |
Add New Post /wp-admin/post-new.php | 6.28 ▲0.40 | 84.11 ▼22.01 |
Media Library /wp-admin/upload.php | 3.60 ▲0.38 | 41.63 ▲6.00 |
Leospeed Settings /wp-admin/options-general.php?page=sx-setting-admin | 3.57 | 38.28 |
Server storage [IO: ▲5.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 74 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Leospeed
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲112 | 14.56 ▲0.19 | 1.73 ▲0.04 | 44.13 ▲2.23 |
Dashboard /wp-admin | 2,256 ▲68 | 5.99 ▲1.08 | 106.38 ▲3.21 | 39.15 ▼7.10 |
Posts /wp-admin/edit.php | 2,118 ▲26 | 2.65 ▲0.61 | 48.00 ▲5.80 | 34.26 ▼3.15 |
Add New Post /wp-admin/post-new.php | 1,548 ▲34 | 24.07 ▲6.37 | 679.20 ▲10.83 | 39.24 ▼17.57 |
Media Library /wp-admin/upload.php | 1,438 ▲47 | 5.11 ▲0.92 | 102.67 ▲7.02 | 41.55 ▼3.87 |
Leospeed Settings /wp-admin/options-general.php?page=sx-setting-admin | 1,609 | 2.33 | 31.52 | 36.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/leospeed/public/js/dashboard.controller.php
- > /wp-content/plugins/leospeed/public/js/activation.controller.php
- 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/leospeed/includes/constant.php on line 29
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/leospeed/includes/constant.php on line 29
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/leospeed/includes/constant.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/leospeed/templates/setting.php:2
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/leospeed/includes/constant.php on line 29
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/leospeed/includes/constant.php on line 29
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/leospeed/includes/constant.php on line 29
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/leospeed/templates/container.php:2
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/leospeed/includes/constant.php on line 29
- > PHP Warning
Use of undefined constant WP_CONTENT_DIR - assumed 'WP_CONTENT_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/leospeed/includes/constant.php on line 29
- > 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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
leospeed/leospeed.php 92% from 13 tests
This is the main PHP file of "Leospeed" version 4.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 376 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin17,698 lines of code in 56 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 3,036 | 18,995 | 13,132 |
PHP | 33 | 386 | 349 | 2,967 |
SVG | 8 | 0 | 7 | 531 |
CSS | 3 | 96 | 9 | 528 |
Sass | 2 | 108 | 0 | 526 |
JSON | 2 | 0 | 0 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 15.38 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 13 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 100 | |
▷ Static methods | 29 | 29.00% |
▷ Public methods | 93 | 93.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 7.00% |
Functions | 42 | |
▷ Named functions | 36 | 85.71% |
▷ Anonymous functions | 6 | 14.29% |
Constants | 58 | |
▷ Global constants | 55 | 94.83% |
▷ Class constants | 3 | 5.17% |
▷ Public constants | 3 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 2.46MB with 1.28MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/images/danger.png | 25.90KB | 8.52KB | ▼ 67.13% |
public/images/resource.png | 2,484.82KB | 897.69KB | ▼ 63.87% |
public/images/leo.png | 1.07KB | 1.24KB | 0.00% |
public/images/sonicx-logo.png | 2.80KB | 0.61KB | ▼ 78.18% |