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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 36.60 ▼2.70 |
Dashboard /wp-admin | 3.33 ▲0.02 | 42.71 ▼2.97 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 46.11 ▼1.62 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 82.38 ▼19.52 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 32.92 ▼2.47 |
H5P Resize Pulse /wp-admin/options-general.php?page=h5presizepulse-admin | 3.21 | 28.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 14.47 ▲0.19 | 1.80 ▼0.16 | 43.60 ▲0.21 |
Dashboard /wp-admin | 2,215 ▲26 | 4.85 ▼0.08 | 107.46 ▼4.99 | 38.37 ▲0.08 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.01 ▼0.03 | 39.08 ▼2.35 | 34.88 ▼0.34 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 17.75 ▼5.86 | 611.00 ▼21.26 | 49.80 ▼0.97 |
Media Library /wp-admin/upload.php | 1,389 ▲1 | 4.18 ▲0.01 | 97.18 ▲3.14 | 40.79 ▼0.57 |
H5P Resize Pulse /wp-admin/options-general.php?page=h5presizepulse-admin | 846 | 2.06 | 23.56 | 27.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 67 | 190 | 330 |
JavaScript | 1 | 19 | 29 | 83 |
PO File | 1 | 12 | 15 | 61 |
Markdown | 1 | 10 | 0 | 22 |
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 code | 0.35 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 12 | 40.00% |
▷ Public methods | 30 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 2 | 33.33% |
▷ Class constants | 4 | 66.67% |
▷ Public constants | 4 | 100.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