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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.19ms] Passed 4 tests
An overview of server-side resources used by P2 By Email
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.48 ▼2.81 |
Dashboard /wp-admin | 3.33 ▲0.02 | 51.83 ▼4.26 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 49.15 ▲3.72 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 83.71 ▼9.22 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.42 ▼0.47 |
Server storage [IO: ▲0.04MB] [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: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for P2 By Email
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲54 | 13.74 ▼0.63 | 1.74 ▼0.51 | 41.76 ▼4.71 |
Dashboard /wp-admin | 2,206 ▲15 | 5.91 ▲0.03 | 113.13 ▼0.42 | 44.46 ▼2.23 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.04 | 39.40 ▲2.26 | 33.15 ▼4.15 |
Add New Post /wp-admin/post-new.php | 1,542 ▲23 | 18.47 ▼4.57 | 617.08 ▲11.16 | 55.92 ▼4.89 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.19 ▼0.06 | 98.34 ▼8.30 | 41.93 ▼2.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'P2_By_Email' not found in wp-content/plugins/p2-by-email/inc/class-p2be-emails.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/p2-by-email/tests/test-sample.php:3
- > PHP Notice
Undefined variable: author_wrote in wp-content/plugins/p2-by-email/templates/post.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function the_content() in wp-content/plugins/p2-by-email/templates/post.php:3
- > PHP Notice
Undefined variable: quoted_text in wp-content/plugins/p2-by-email/templates/comment.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'P2_By_Email' not found in wp-content/plugins/p2-by-email/inc/class-p2be-email-replies.php:3
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/p2-by-email/tests/bootstrap.php on line 3
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/p2-by-email/inc/class-p2be-wp-cli.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function comment_text() in wp-content/plugins/p2-by-email/templates/comment.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/p2-by-email/p2-by-email.php:120
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tested up to: Version not formatted correctly
p2-by-email/p2-by-email.php 92% from 13 tests
The entry point to "P2 By Email" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin758 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 219 | 166 | 744 |
XML | 1 | 0 | 0 | 14 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 15.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 1 | 1.92% |
▷ Public methods | 29 | 55.77% |
▷ Protected methods | 5 | 9.62% |
▷ Private methods | 18 | 34.62% |
Functions | 2 | |
▷ Named functions | 2 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin