10% stimulate-correct-headings

Code Review | Stimulate Correct Headings

WordPress plugin Stimulate Correct Headings scored10%from 54 tests.

About plugin

  • Plugin page: stimulate-correct...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6
  • WordPress version: 6.3.1
  • First release: Aug 27, 2013
  • Latest release: Aug 27, 2013
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: bassjobsen (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,244 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.04 ▼6.94
Dashboard /wp-admin3.32 ▲0.0244.35 ▼4.85
Posts /wp-admin/edit.php3.37 ▲0.0245.93 ▲0.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.41 ▼21.26
Media Library /wp-admin/upload.php3.25 ▲0.0237.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.29 ▲0.061.61 ▼0.1336.10 ▼5.53
Dashboard /wp-admin2,201 ▲275.58 ▲0.0584.12 ▼7.6536.02 ▼8.37
Posts /wp-admin/edit.php2,100 ▼31.97 ▼0.0735.63 ▼4.8530.39 ▼3.21
Add New Post /wp-admin/post-new.php1,529 ▲122.71 ▼0.23571.23 ▼121.7959.23 ▼1.80
Media Library /wp-admin/upload.php1,397 ▼64.22 ▲0.01103.81 ▲1.2241.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

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)
You can look at the official readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP1294662
PO File2141652

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 code0.29
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.12
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods422.22%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-2.png17.83KB8.14KB▼ 54.32%
trunk/screenshot-1.png18.95KB7.82KB▼ 58.73%
screenshot-1.png18.95KB7.82KB▼ 58.73%
trunk/screenshot-2.png17.83KB8.14KB▼ 54.32%