84% wp-html5-outliner

Code Review | WP HTML5 Outliner

WordPress plugin WP HTML5 Outliner scored84%from 54 tests.

About plugin

  • Plugin page: wp-html5-outliner
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.4.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-5.3.2
  • WordPress version: 6.3.1
  • First release: Nov 28, 2018
  • Latest release: Jan 27, 2020
  • Number of updates: 11
  • Update frequency: every 38.6 days
  • Top authors: rsborn (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /863 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.12ms] Passed 4 tests

An overview of server-side resources used by WP HTML5 Outliner
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.10 ▼0.75
Dashboard /wp-admin3.31 ▲0.0044.52 ▼9.35
Posts /wp-admin/edit.php3.36 ▲0.0049.47 ▲1.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.67 ▼11.53
Media Library /wp-admin/upload.php3.23 ▲0.0035.80 ▲1.16

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for WP HTML5 Outliner
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲17513.66 ▼1.099.84 ▲7.9841.88 ▼4.88
Dashboard /wp-admin2,206 ▲155.78 ▲0.89101.15 ▼14.4738.97 ▼7.60
Posts /wp-admin/edit.php2,092 ▲32.00 ▼0.0035.34 ▼2.1030.00 ▼1.22
Add New Post /wp-admin/post-new.php1,514 ▼2017.74 ▼5.29686.38 ▲4.8770.94 ▲13.70
Media Library /wp-admin/upload.php1,382 ▼04.25 ▲0.07104.61 ▲4.0341.50 ▼3.00

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/wp-html5-outliner/wp-html5-outliner.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: accessibility, html5, outline

wp-html5-outliner/wp-html5-outliner.php Passed 13 tests

The primary PHP file in "WP HTML5 Outliner" version 1.3.0 is used by WordPress to initiate all plugin functionality
77 characters long description:
Adds an HTML 5 outline plus a heading-level outline to the WordPress Toolbar.

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
No dangerous file extensions were detected1,122 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP12462871619
Sass19515217
CSS282210
JavaScript2686776

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity30.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods51
▷ Static methods1937.25%
▷ Public methods2956.86%
▷ Protected methods00.00%
▷ Private methods2243.14%
Functions6
▷ Named functions583.33%
▷ Anonymous functions116.67%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin