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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼1.64ms] Passed 4 tests
Analyzing server-side resources used by Stop Emails
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 40.72 ▲1.15 |
Dashboard /wp-admin | 3.45 ▲0.14 | 48.15 ▼3.79 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 50.56 ▼0.16 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 94.66 ▼0.47 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 35.70 ▼2.13 |
Stop Emails /wp-admin/options-general.php?page=fe_stop_emails | 3.27 | 29.98 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Stop Emails
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲63 | 14.34 ▼0.29 | 1.98 ▲0.31 | 45.51 ▲0.80 |
Dashboard /wp-admin | 2,208 ▲34 | 5.67 ▲0.06 | 89.28 ▼9.78 | 41.17 ▲1.67 |
Posts /wp-admin/edit.php | 2,110 ▲7 | 1.98 ▲0.03 | 41.35 ▼0.63 | 35.47 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,540 ▲3 | 23.06 ▲4.90 | 659.00 ▲41.61 | 61.77 ▼10.50 |
Media Library /wp-admin/upload.php | 1,413 ▲13 | 4.26 ▲0.07 | 100.19 ▲0.70 | 44.64 ▲1.56 |
Stop Emails /wp-admin/options-general.php?page=fe_stop_emails | 805 | 1.67 | 26.26 | 27.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stop-emails/lib/admin-settings.php:9
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/stop-emails/tests/phpunit/includes/bootstrap.php on line 9
- > PHP Warning
require_once(/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/stop-emails/tests/phpunit/includes/bootstrap.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/stop-emails/tests/phpunit/tests/stop-emails.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Screenshots: A description for screenshot #2 is required in stop-emails/assets to your readme.txt
stop-emails/stop-emails.php 92% from 13 tests
The principal PHP file in "Stop Emails" v. 1.2.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 235 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
No dangerous file extensions were detected398 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 64 | 200 | 274 |
PO File | 2 | 36 | 43 | 110 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 23 | |
▷ Static methods | 2 | 8.70% |
▷ Public methods | 23 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.13MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
banner-772x250.png | 51.76KB | 23.13KB | ▼ 55.32% |
icon-128x128.png | 8.10KB | 8.34KB | 0.00% |
screenshot-1.png | 24.10KB | 7.24KB | ▼ 69.95% |
screenshot-2.png | 25.15KB | 7.25KB | ▼ 71.18% |
icon-256x256.png | 22.48KB | 23.24KB | 0.00% |