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.01MB] [CPU: ▼1.76ms] Passed 4 tests
An overview of server-side resources used by Pound :: Easy Unit Testing For WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.61 ▼6.24 |
Dashboard /wp-admin | 3.32 ▲0.01 | 48.59 ▼1.89 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.92 ▲1.01 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.40 ▲1.97 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.96 ▲0.08 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Pound :: Easy Unit Testing For WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 14.44 ▲0.07 | 1.75 ▼0.18 | 40.44 ▼11.41 |
Dashboard /wp-admin | 2,206 ▲18 | 5.85 ▲0.98 | 106.81 ▼11.99 | 40.04 ▼2.70 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▲0.00 | 40.21 ▲4.02 | 35.53 ▲2.31 |
Add New Post /wp-admin/post-new.php | 1,546 ▲3 | 23.10 ▲4.93 | 627.45 ▼1.63 | 59.89 ▲7.55 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.22 ▼0.01 | 96.47 ▼2.13 | 43.61 ▼2.47 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% 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 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
Please fix the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/pound/views/html-test-results.php
- 23× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Trying to get property 'passed_messages' of non-object in wp-content/plugins/pound/views/html-test-results.php on line 4
- > PHP Notice
Trying to get property 'passed_messages' of non-object in wp-content/plugins/pound/views/html-test-results.php on line 40
- > PHP Notice
Undefined variable: results in wp-content/plugins/pound/views/html-test-results.php on line 26
- > PHP Warning
count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/pound/views/html-test-results.php on line 40
- > PHP Fatal error
Uncaught Error: Class 'LB_Test' not found in wp-content/plugins/pound/tests/class-test-group-two.php:3
- > PHP Fatal error
Uncaught Error: Class 'LB_Test' not found in wp-content/plugins/pound/tests/class-test-group-one.php:3
- > PHP Notice
Undefined variable: results in wp-content/plugins/pound/views/html-test-results.php on line 40
- > PHP Notice
Undefined variable: results in wp-content/plugins/pound/views/html-test-results.php on line 42
- > PHP Fatal error
Uncaught Error: Class 'LB_Test' not found in wp-content/plugins/pound/tests/class-test-group-one.php:3
- > PHP Notice
Trying to get property 'skipped_messages' of non-object in wp-content/plugins/pound/views/html-test-results.php on line 42
- > PHP Notice
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 97% 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
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Shortcode to run tests), #2 (Example output with a failing test)
pound/pound.php Passed 13 tests
The main PHP file in "Pound :: Easy Unit Testing For WordPress" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
43 characters long description:
Easily run unit tests for WordPress plugins
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 plugin326 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 82 | 100 | 280 |
CSS | 1 | 11 | 0 | 46 |
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.28 |
Average class complexity | 3.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 1 | 11.11% |
Methods | 24 | |
▷ Static methods | 10 | 41.67% |
▷ Public methods | 24 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
2 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 47.67KB | 17.42KB | ▼ 63.45% |
screenshot-1.png | 8.99KB | 4.58KB | ▼ 49.05% |