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.17MB] [CPU: ▼1.98ms] Passed 4 tests
Server-side resources used by Energ1zer
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 34.47 ▼7.52 |
Dashboard /wp-admin | 3.48 ▲0.18 | 48.74 ▲4.03 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 44.83 ▲0.77 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 88.61 ▼5.21 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 40.49 ▲8.93 |
Menu Text /wp-admin/options-general.php?page=energ1zer | 3.38 | 31.26 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Energ1zer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲134 | 13.48 ▼0.87 | 10.99 ▲9.35 | 37.98 ▼3.40 |
Dashboard /wp-admin | 2,198 ▲27 | 5.54 ▼0.04 | 81.88 ▼4.05 | 36.82 ▼1.84 |
Posts /wp-admin/edit.php | 2,106 ▲9 | 2.03 ▲0.05 | 32.94 ▼0.89 | 34.38 ▼0.02 |
Add New Post /wp-admin/post-new.php | 6,341 ▲4,815 | 25.94 ▲2.80 | 899.61 ▲243.24 | 61.79 ▲11.69 |
Media Library /wp-admin/upload.php | 1,409 ▲9 | 4.23 ▲0.07 | 110.07 ▲13.73 | 46.81 ▲5.00 |
Menu Text /wp-admin/options-general.php?page=energ1zer | 791 | 2.00 | 26.89 | 26.63 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/energ1zer/public/views/public.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/energ1zer/admin/views/admin.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: shortcode rich text edit layout responsive design thumbnails rounded
energ1zer/energ1zer.php Passed 13 tests
The main PHP file in "Energ1zer" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Bring life to your wordpress site with dynamic elements
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
Everything looks great! No dangerous files found in this plugin3,626 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 533 | 907 | 2,005 |
PHP | 7 | 197 | 518 | 1,176 |
CSS | 3 | 50 | 7 | 445 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 104.50 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 187.00 |
Average method complexity | 5.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 81.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 46 | |
▷ Static methods | 8 | 17.39% |
▷ Public methods | 41 | 89.13% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.87% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.47MB with 0.30MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 11.50KB | 5.06KB | ▼ 56.00% |
assets/banner-1544x500.png | 23.10KB | 9.63KB | ▼ 58.33% |
assets/screenshot-1.png | 450.52KB | 105.76KB | ▼ 76.52% |