78% snordians-h5p-resize-pulse

Code Review | SNORDIAN's H5P Resize Pulse

WordPress plugin SNORDIAN's H5P Resize Pulse scored78%from 54 tests.

About plugin

  • Plugin page: snordians-h5p-res...
  • Plugin version: 0.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: May 19, 2020
  • Latest release: Sep 29, 2023
  • Number of updates: 22
  • Update frequency: every 55.8 days
  • Top authors: otacke (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,013 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.92ms] Passed 4 tests

Analyzing server-side resources used by SNORDIAN's H5P Resize Pulse
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.60 ▼2.70
Dashboard /wp-admin3.33 ▲0.0242.71 ▼2.97
Posts /wp-admin/edit.php3.38 ▲0.0246.11 ▼1.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.38 ▼19.52
Media Library /wp-admin/upload.php3.25 ▲0.0232.92 ▼2.47
H5P Resize Pulse /wp-admin/options-general.php?page=h5presizepulse-admin3.2128.47

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 9 new options
New WordPress options
h5presizepulse_defaults_set
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
h5presizepulse_version
h5presizepulse_option
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for SNORDIAN's H5P Resize Pulse
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲7914.47 ▲0.191.80 ▼0.1643.60 ▲0.21
Dashboard /wp-admin2,215 ▲264.85 ▼0.08107.46 ▼4.9938.37 ▲0.08
Posts /wp-admin/edit.php2,101 ▲122.01 ▼0.0339.08 ▼2.3534.88 ▼0.34
Add New Post /wp-admin/post-new.php1,517 ▼1617.75 ▼5.86611.00 ▼21.2649.80 ▼0.97
Media Library /wp-admin/upload.php1,389 ▲14.18 ▲0.0197.18 ▲3.1440.79 ▼0.57
H5P Resize Pulse /wp-admin/options-general.php?page=h5presizepulse-admin8462.0623.5627.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/snordians-h5p-resize-pulse/trunk/wp-h5p-resize-pulse.php
    • > /wp-content/plugins/snordians-h5p-resize-pulse/wp-h5p-resize-pulse.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function H5PRESIZEPULSE\\get_option() in wp-content/plugins/snordians-h5p-resize-pulse/trunk/class-options.php:378
    • > PHP Fatal error
      Uncaught Error: Call to undefined function H5PRESIZEPULSE\\get_option() in wp-content/plugins/snordians-h5p-resize-pulse/class-options.php:378

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 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: h5p, lightbox, tab, accordion

snordians-h5p-resize-pulse/wp-h5p-resize-pulse.php 85% from 13 tests

This is the main PHP file of "SNORDIAN's H5P Resize Pulse" version 0.1.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("snordians-h5p-resize-pulse.php" instead of "wp-h5p-resize-pulse.php")
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin496 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP267190330
JavaScript1192983
PO File1121561
Markdown110022

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity13.00
▷ Minimum class complexity13.00
▷ Maximum class complexity13.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods30
▷ Static methods1240.00%
▷ Public methods30100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.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
There are no PNG files in this plugin