Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.78ms] Passed 4 tests
Analyzing server-side resources used by Validated
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.13 ▼2.35 |
Dashboard /wp-admin | 3.35 ▲0.05 | 50.17 ▼7.55 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 48.89 ▼2.20 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 87.33 ▼11.00 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.78 ▼1.07 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Validated
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲36 | 14.68 ▼0.06 | 1.71 ▼0.28 | 44.31 ▼2.68 |
Dashboard /wp-admin | 2,206 ▲29 | 5.67 ▲0.15 | 90.68 ▼12.97 | 39.92 ▼6.20 |
Posts /wp-admin/edit.php | 2,147 ▲50 | 2.07 ▼0.08 | 39.18 ▲2.43 | 39.25 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,537 ▲9 | 23.09 ▼0.02 | 666.98 ▲5.28 | 50.46 ▲3.70 |
Media Library /wp-admin/upload.php | 1,411 ▲11 | 4.29 ▲0.09 | 99.00 ▼17.01 | 42.02 ▼6.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/validated/tests/test-validated.php:11
- > PHP Fatal error
Uncaught Error: Class 'WP_Ajax_UnitTestCase' not found in wp-content/plugins/validated/tests/test-ajax.php:13
- > PHP Fatal error
require_once(): Failed opening required '/tmp/wordpress-tests-lib/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/validated/tests/bootstrap.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/validated/validated.php:26
- > PHP Warning
require_once(/tmp/wordpress-tests-lib/includes/functions.php): failed to open stream: No such file or directory in wp-content/plugins/validated/tests/bootstrap.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/validated/views/report.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: xhtml, validation, w3c, code, html
validated/validated.php Passed 13 tests
The entry point to "Validated" version 2.1.2 is a PHP file that has certain tags in its header comment area
34 characters long description:
W3C validation on pages and posts.
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
There were no executable files found in this plugin671 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 71 | 217 | 308 |
JavaScript | 4 | 25 | 55 | 188 |
Bourne Shell | 1 | 21 | 6 | 85 |
JSON | 2 | 0 | 0 | 44 |
XML | 1 | 2 | 0 | 21 |
CSS | 2 | 5 | 0 | 20 |
Markdown | 1 | 1 | 0 | 5 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 11.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 1 | 4.17% |
▷ Public methods | 18 | 75.00% |
▷ Protected methods | 6 | 25.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin