Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- Install procedure had errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'WooCommerce_Twitter_Bootstrap' not found
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.11ms] Passed 4 tests
Server-side resources used by Stimulate Correct Headings
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.04 ▼6.94 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.35 ▼4.85 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 45.93 ▲0.62 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 80.41 ▼21.26 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 37.10 ▲2.69 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Stimulate Correct Headings
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲31 | 14.29 ▲0.06 | 1.61 ▼0.13 | 36.10 ▼5.53 |
Dashboard /wp-admin | 2,201 ▲27 | 5.58 ▲0.05 | 84.12 ▼7.65 | 36.02 ▼8.37 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.97 ▼0.07 | 35.63 ▼4.85 | 30.39 ▼3.21 |
Add New Post /wp-admin/post-new.php | 1,529 ▲1 | 22.71 ▼0.23 | 571.23 ▼121.79 | 59.23 ▼1.80 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.22 ▲0.01 | 103.81 ▲1.22 | 41.06 ▼2.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The plugin did not uninstall gracefully
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, class 'WooCommerce_Twitter_Bootstrap' not found
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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 items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/stimulate-correct-headings/stimulate-correct-headings.php:133
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/stimulate-correct-headings/trunk/stimulate-correct-headings.php:133
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Dropdown formatting menu in the WYSIWYG editor), #2 (Heading buttons in the text editor)
stimulate-correct-headings/stimulate-correct-headings.php Passed 13 tests
The main PHP file in "Stimulate Correct Headings" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
67 characters long description:
Stimulate editors to use correct headings for accessibility and seo
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
There were no executable files found in this plugin114 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 29 | 46 | 62 |
PO File | 2 | 14 | 16 | 52 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 18 | |
▷ Static methods | 4 | 22.22% |
▷ Public methods | 18 | 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 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 17.83KB | 8.14KB | ▼ 54.32% |
trunk/screenshot-1.png | 18.95KB | 7.82KB | ▼ 58.73% |
screenshot-1.png | 18.95KB | 7.82KB | ▼ 58.73% |
trunk/screenshot-2.png | 17.83KB | 8.14KB | ▼ 54.32% |