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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼4.60ms] Passed 4 tests
Server-side resources used by Responsive P5JS for WP
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.78 ▼2.78 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.24 ▼9.45 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 52.63 ▼0.29 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.29 ▼5.83 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.01 ▼0.33 |
Responsive P5JS Instructions /wp-admin/options-general.php?page=p5js_settings_page | 3.23 | 30.35 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Responsive P5JS for WP: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.57 ▼0.74 | 8.53 ▲6.40 | 43.90 ▼4.41 |
Dashboard /wp-admin | 2,209 ▲21 | 5.82 ▼0.04 | 101.12 ▼22.07 | 40.11 ▼8.91 |
Posts /wp-admin/edit.php | 2,095 ▲2 | 2.03 ▲0.03 | 40.33 ▼3.72 | 34.61 ▼8.05 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.55 ▲0.87 | 601.79 ▼42.21 | 51.23 ▼2.84 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.20 ▼0.19 | 97.39 ▲0.54 | 44.60 ▲2.76 |
Responsive P5JS Instructions /wp-admin/options-general.php?page=p5js_settings_page | 997 | 2.02 | 23.29 | 70.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/responsive-p5js-for-wp/responsive-p5js-for-wp.php:72
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/responsive-p5js-for-wp/admin/p5js_instructions.php:3
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
6 plugin tags: processing, p5js, html5, javascript, embed...
responsive-p5js-for-wp/responsive-p5js-for-wp.php Passed 13 tests
"Responsive P5JS for WP" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
47 characters long description:
Embed an existing P5JS sketch in a post or page
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin296 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 58 | 132 | 214 |
CSS | 2 | 0 | 1 | 43 |
JavaScript | 4 | 2 | 19 | 39 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 1.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 14 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/p5js_uploads.png | 40.72KB | 18.44KB | ▼ 54.73% |