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.03MB] [CPU: ▼2.57ms] Passed 4 tests
This is a short check of server-side resources used by Eros
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.09 ▼8.38 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.27 ▼1.87 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.41 ▲3.06 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 87.68 ▼2.82 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 36.88 ▲2.78 |
Eros /wp-admin/admin.php?page=eros-info-page | 3.22 | 32.65 |
Configuration /wp-admin/admin.php?page=eros-configuration-page | 3.22 | 31.67 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_eroswidget |
Browser metrics Passed 4 tests
A check of browser resources used by Eros
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,881 ▲146 | 14.01 ▼0.36 | 10.06 ▲8.38 | 49.56 ▲0.80 |
Dashboard /wp-admin | 2,232 ▲44 | 5.79 ▼0.18 | 94.03 ▼6.60 | 39.42 ▼6.86 |
Posts /wp-admin/edit.php | 2,115 ▲26 | 2.05 ▲0.00 | 34.81 ▼0.98 | 29.57 ▼5.12 |
Add New Post /wp-admin/post-new.php | 1,553 ▲7 | 23.40 ▲5.17 | 651.51 ▲27.15 | 54.87 ▼7.64 |
Media Library /wp-admin/upload.php | 1,405 ▲17 | 4.13 ▼0.04 | 102.38 ▼4.21 | 47.08 ▲1.75 |
Eros /wp-admin/admin.php?page=eros-info-page | 813 | 2.02 | 27.74 | 31.76 |
Configuration /wp-admin/admin.php?page=eros-configuration-page | 860 | 2.03 | 24.26 | 28.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_eroswidget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
Almost there! Just fix the following items
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/eros/eros-admin.php
- > /wp-content/plugins/eros/eros-widget.php
- > /wp-content/plugins/eros/eros.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/eros/eros-shortcode.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: field, strain, id, user, stress...
eros/eros.php 92% from 13 tests
The main PHP file in "Eros" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 179 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
Success! There were no dangerous files found in this plugin948 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 53 | 91 | 277 |
CSS | 2 | 2 | 4 | 245 |
JavaScript | 2 | 32 | 39 | 238 |
SVG | 4 | 0 | 1 | 162 |
Markdown | 1 | 7 | 0 | 26 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected