78% html5-cumulus

Code Review | HTML5 Cumulus

WordPress plugin HTML5 Cumulus scored78%from 54 tests.

About plugin

  • Plugin page: html5-cumulus
  • Plugin version: 1.01
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-6.1
  • WordPress version: 6.3.1
  • First release: Aug 8, 2019
  • Latest release: Oct 30, 2022
  • Number of updates: 16
  • Update frequency: every 73.8 days
  • Top authors: Flector (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /9,840 total downloads

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.15MB] [CPU: ▼2.88ms] Passed 4 tests

Server-side resources used by HTML5 Cumulus
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1748.38 ▲3.12
Dashboard /wp-admin3.46 ▲0.1253.87 ▼16.22
Posts /wp-admin/edit.php3.58 ▲0.2254.12 ▼2.11
Add New Post /wp-admin/post-new.php6.05 ▲0.1697.00 ▲3.70
Media Library /wp-admin/upload.php3.39 ▲0.1643.32 ▲6.74

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_html5_cumulus
widget_theysaidso_widget
can_compress_scripts
db_upgraded
h5c_options

Browser metrics Passed 4 tests

HTML5 Cumulus: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲11313.85 ▼0.709.34 ▲7.7547.21 ▲8.99
Dashboard /wp-admin2,199 ▲225.52 ▼0.0787.00 ▼14.6839.92 ▼5.25
Posts /wp-admin/edit.php2,101 ▼22.07 ▲0.1138.69 ▼1.4135.30 ▲0.02
Add New Post /wp-admin/post-new.php1,540 ▲1418.04 ▼5.40623.12 ▼47.9166.40 ▲8.12
Media Library /wp-admin/upload.php1,407 ▲74.20 ▼0.00101.16 ▼9.3144.05 ▼3.53
HTML5 Cumulus /wp-admin/html5-cumulus.php260.420.0914.40

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_html5_cumulus
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/html5-cumulus/html5-cumulus.php:19

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
    • > GET request to /wp-admin/html5-cumulus.php
    • > Network (severe)
    wp-admin/html5-cumulus.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
You can look at the official readme.txt

html5-cumulus/html5-cumulus.php Passed 13 tests

The main PHP script in "HTML5 Cumulus" version 1.01 is automatically included on every request by WordPress
58 characters long description:
A modern (HTML5) version of the classic WP-Cumulus plugin.

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
Success! There were no dangerous files found in this plugin1,297 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP18870685
JavaScript48947388
CSS269224

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity17.50
▷ Minimum class complexity4.00
▷ Maximum class complexity31.00
Average method complexity3.54
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.01MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/icon_coffee.png5.14KB5.32KB0.00%