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: ▼5.46ms] Passed 4 tests
Analyzing server-side resources used by EMC2 Alert Boxes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.03 | 51.37 ▼3.71 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.00 ▼0.17 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 57.64 ▲1.05 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 95.77 ▼13.00 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 35.50 ▼4.96 |
EMC2 Alert Settings /wp-admin/admin.php?page=emc2alert_options | 3.19 | 35.15 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
EMC2 Alert Boxes: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲141 | 13.72 ▼0.63 | 10.17 ▲7.88 | 40.27 ▼27.06 |
Dashboard /wp-admin | 2,224 ▲18 | 4.85 ▼1.06 | 114.61 ▲5.26 | 43.09 ▲4.30 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.03 ▼0.00 | 38.13 ▼6.03 | 36.72 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,547 ▲2 | 22.90 ▼0.14 | 717.14 ▲33.00 | 55.34 ▼20.18 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.27 ▲0.04 | 98.12 ▼9.16 | 48.14 ▲1.48 |
EMC2 Alert Settings /wp-admin/admin.php?page=emc2alert_options | 803 | 2.05 | 24.03 | 29.81 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=emc2alert_options
- > Notice in wp-content/plugins/emc2-alert-boxes/emc2alert-options.php+4
Undefined index: phone_home
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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/emc2-alert-boxes/emc2alert_popup.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/emc2-alert-boxes/emc2-alert-boxes.php on line 13
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/emc2-alert-boxes/emc2-alert-boxes.php on line 13
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/emc2-alert-boxes/emc2-alert-boxes.php on line 13
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Theme-side box view.), #2 (TinyMCE shortcode creation interface.)
emc2-alert-boxes/emc2-alert-boxes.php Passed 13 tests
The main PHP script in "EMC2 Alert Boxes" version 1.3 is automatically included on every request by WordPress
31 characters long description:
Fancy alert boxes for WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected407 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 41 | 65 | 235 |
CSS | 1 | 9 | 6 | 94 |
JavaScript | 2 | 22 | 37 | 78 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
4 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
alert.png | 10.37KB | 4.76KB | ▼ 54.14% |
screenshot-1.png | 33.04KB | 13.61KB | ▼ 58.81% |
close.png | 0.26KB | 0.17KB | ▼ 33.71% |
screenshot-2.png | 12.04KB | 5.11KB | ▼ 57.55% |