Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼9.06ms] Passed 4 tests
An overview of server-side resources used by surpriseme
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.10 ▲2.34 |
Dashboard /wp-admin | 3.33 ▲0.03 | 50.13 ▼8.49 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 51.61 ▼2.89 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.39 ▼23.87 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 35.67 ▼0.99 |
Server storage [IO: ▲0.04MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
smart_coupons_is_send_email |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for surpriseme
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.39 ▼0.29 | 2.25 ▲0.52 | 44.46 ▼1.77 |
Dashboard /wp-admin | 2,195 ▲18 | 5.64 ▼0.05 | 89.07 ▼11.47 | 43.02 ▼6.44 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.14 ▲0.15 | 35.66 ▲1.68 | 35.67 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,526 ▼19 | 17.55 ▼5.65 | 696.96 ▲49.47 | 53.86 ▲1.24 |
Media Library /wp-admin/upload.php | 1,397 ▲3 | 4.43 ▲0.20 | 102.52 ▼0.88 | 44.75 ▲0.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- smart_coupons_is_send_email
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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 SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: woocommerce, gutscheine, geschenke
surpriseme/surpriseme.php 92% from 13 tests
This is the main PHP file of "surpriseme" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Make the plugin description longer than 10 characters (currently 0 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 plugin752 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 208 | 65 | 752 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 59 | |
▷ Static methods | 2 | 3.39% |
▷ Public methods | 47 | 79.66% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 20.34% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
There are no PNG files in this plugin