Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼1.60ms] Passed 4 tests
An overview of server-side resources used by Audio on every block
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 39.26 ▼1.45 |
Dashboard /wp-admin | 3.32 ▼0.03 | 44.74 ▼14.35 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.39 ▲5.25 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 91.00 ▲9.61 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.57 ▲4.14 |
Audio on every Block Settings /wp-admin/options-general.php?page=audio_on_every_block | 3.21 | 30.31 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Audio on every block
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲43 | 14.61 ▼0.04 | 1.68 ▼0.03 | 38.53 ▼11.93 |
Dashboard /wp-admin | 2,199 ▲22 | 5.56 ▼0.01 | 83.41 ▼4.66 | 39.82 ▲1.05 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▲0.00 | 38.81 ▲4.80 | 36.01 ▼5.68 |
Add New Post /wp-admin/post-new.php | 1,540 ▲5 | 18.39 ▲0.30 | 658.42 ▲5.82 | 78.73 ▲9.01 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.24 ▲0.03 | 108.56 ▲15.83 | 49.74 ▲10.89 |
Audio on every Block Settings /wp-admin/options-general.php?page=audio_on_every_block | 813 | 1.99 | 23.95 | 27.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 75% 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/audio-on-every-block/templates/audio-on-every-block.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/audio-on-every-block/admin/admin.php:38
- > PHP Fatal error
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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: audio block, audio
audio-on-every-block/audio-on-every-block.php Passed 13 tests
The principal PHP file in "Audio on every block" v. 1.1.3 is loaded by WordPress automatically on each request
67 characters long description:
Adds the possibility to add an audio-file for each Gutenberg-Block.
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
There were no executable files found in this plugin193 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 24 | 96 | 158 |
PO File | 1 | 9 | 12 | 33 |
JSON | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
There are no PNG files in this plugin