Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.16MB] [CPU: ▼7.61ms] Passed 4 tests
This is a short check of server-side resources used by WpOnError
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.14 | 44.76 ▲4.60 |
Dashboard /wp-admin | 3.47 ▲0.17 | 49.66 ▼3.69 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 48.53 ▼3.09 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 87.23 ▼25.31 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 38.18 ▲1.64 |
Settings /wp-admin/edit.php?post_type=wponerror&page=wponerror | 3.76 | 39.92 |
Server storage [IO: ▲4.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 465 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WpOnError
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲142 | 13.52 ▼0.83 | 8.19 ▲6.48 | 38.57 ▼4.15 |
Dashboard /wp-admin | 2,225 ▲44 | 5.69 ▼0.02 | 98.41 ▼3.83 | 43.81 ▲0.85 |
Posts /wp-admin/edit.php | 2,132 ▲35 | 2.07 ▲0.09 | 37.72 ▲1.24 | 32.36 ▼2.27 |
Add New Post /wp-admin/post-new.php | 1,549 ▲14 | 23.01 ▲4.59 | 662.52 ▼16.36 | 55.22 ▼23.04 |
Media Library /wp-admin/upload.php | 1,427 ▲33 | 4.28 ▲0.03 | 101.49 ▼16.18 | 42.40 ▼7.69 |
Settings /wp-admin/edit.php?post_type=wponerror&page=wponerror | 852 | 2.26 | 27.52 | 27.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wponerror/vendor/cmb2/cmb2/apigen/hook-docs.php
- 57× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wponerror/vendor/cmb2/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Counter_Base' not found in wp-content/plugins/wponerror/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/wponerror/vendor/cmb2/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/wponerror/vendor/cmb2/cmb2/includes/CMB2_Hookup.php:14
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/wponerror/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/wponerror/vendor/cmb2/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/wponerror/vendor/cmb2/cmb2/tests/bootstrap.php on line 24
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/wponerror/vendor/cmb2/cmb2/includes/types/CMB2_Type_File_Base.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/wponerror/vendor/cmb2/cmb2/tests/cmb-tests-base.php:10
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Base' not found in wp-content/plugins/wponerror/vendor/cmb2/cmb2/includes/CMB2.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 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
2 plugin tags: javascript, windowonerror
wponerror/wponerror.php 92% from 13 tests
The principal PHP file in "WpOnError" v. 1.1.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Git Repository: An alternative Git repository was detected
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
Everything looks great! No dangerous files found in this plugin64,436 lines of code in 282 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 120 | 14,315 | 18,502 | 32,323 |
PHP | 86 | 3,330 | 7,152 | 12,450 |
CSS | 14 | 357 | 1,206 | 5,004 |
XML | 3 | 0 | 0 | 4,505 |
JSON | 8 | 0 | 0 | 4,478 |
JavaScript | 15 | 532 | 806 | 2,779 |
Sass | 17 | 306 | 29 | 1,411 |
Markdown | 11 | 330 | 0 | 1,050 |
Bourne Shell | 4 | 67 | 45 | 209 |
YAML | 2 | 11 | 6 | 193 |
diff | 2 | 1 | 68 | 34 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 17.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 188.00 |
Average method complexity | 2.70 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 94 | |
▷ Abstract classes | 12 | 12.77% |
▷ Concrete classes | 82 | 87.23% |
▷ Final classes | 0 | 0.00% |
Methods | 906 | |
▷ Static methods | 146 | 16.11% |
▷ Public methods | 770 | 84.99% |
▷ Protected methods | 129 | 14.24% |
▷ Private methods | 7 | 0.77% |
Functions | 38 | |
▷ Named functions | 37 | 97.37% |
▷ Anonymous functions | 1 | 2.63% |
Constants | 16 | |
▷ Global constants | 10 | 62.50% |
▷ Class constants | 6 | 37.50% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
22 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/cmb2/cmb2/images/ui-icons_cd0a0a_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
vendor/cmb2/cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/resize.png | 0.12KB | 0.10KB | ▼ 13.22% |
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-vertical.png | 0.12KB | 0.08KB | ▼ 31.50% |
vendor/cmb2/cmb2/images/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |