Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.91ms] Passed 4 tests
Analyzing server-side resources used by Happy Cart WordPress Plugin
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.27 ▼16.69 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.35 ▼5.72 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 49.34 ▲1.31 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 106.15 ▲4.11 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.21 ▲1.46 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Happy Cart WordPress Plugin
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲77 | 13.47 ▼0.88 | 13.71 ▲11.33 | 35.57 ▼5.56 |
Dashboard /wp-admin | 2,218 ▲44 | 5.62 ▼0.04 | 89.78 ▼1.32 | 37.20 ▼4.47 |
Posts /wp-admin/edit.php | 2,123 ▲23 | 2.02 ▲0.03 | 39.93 ▲3.41 | 35.73 ▼4.01 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 18.35 ▼4.60 | 622.94 ▼79.41 | 65.84 ▲15.20 |
Media Library /wp-admin/upload.php | 1,417 ▲17 | 4.11 ▼0.14 | 103.82 ▼3.80 | 42.91 ▼2.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
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
Please fix the following attributes:
- Contributors: Contributors not specified
happy-cart/happy-cart.php Passed 13 tests
The main file in "Happy Cart WordPress Plugin" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
31 characters long description:
The Happy Cart WordPress plugin
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 plugin384 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 114 | 482 | 366 |
JSON | 1 | 0 | 0 | 12 |
CSS | 1 | 1 | 4 | 3 |
JavaScript | 1 | 2 | 27 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 2 | 5.71% |
▷ Public methods | 30 | 85.71% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.29% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
No PNG files were detected