Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼3.03ms] Passed 4 tests
This is a short check of server-side resources used by Email on Publish
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 35.52 ▼6.90 |
Dashboard /wp-admin | 3.33 ▲0.03 | 47.09 ▼5.97 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 48.85 ▲4.04 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.85 ▼0.79 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.04 ▲1.54 |
Email On Publish /wp-admin/options-general.php?page=email_on_publish | 3.20 | 31.81 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
category_children |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Email on Publish
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.37 ▼1.38 | 4.77 ▲2.76 | 40.35 ▼5.65 |
Dashboard /wp-admin | 2,207 ▲19 | 5.83 ▲0.95 | 98.02 ▼19.45 | 40.36 ▼8.36 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.01 | 39.65 ▲1.97 | 35.59 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,536 ▲2 | 23.27 ▼0.05 | 650.95 ▼25.08 | 56.50 ▲1.81 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.19 ▼0.02 | 96.99 ▼0.67 | 43.88 ▲0.04 |
Email On Publish /wp-admin/options-general.php?page=email_on_publish | 1,399 | 1.74 | 29.14 | 32.40 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- category_children
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 60 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=email_on_publish
- > Notice in wp-content/plugins/email-on-publish/email-on-publish.php+117
Trying to access array offset on value of type bool
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/email-on-publish/email-on-publish.php:11
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Add a description for screenshot #1 in email-on-publish/assets to your readme.txt
- Donate link: Invalid URI found ("")
email-on-publish/email-on-publish.php Passed 13 tests
This is the main PHP file of "Email on Publish" version 1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
48 characters long description:
Used to email text of post when it is published.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected178 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 17 | 23 | 123 |
JavaScript | 1 | 0 | 12 | 39 |
CSS | 1 | 4 | 0 | 16 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.53 |
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 | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin