Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/acb-scratchpad/acb-scratchpad.php+858
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
Server metrics [RAM: ▼1.71MB] [CPU: ▼50.45ms] Passed 4 tests
This is a short check of server-side resources used by Code Block ScratchPad
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.19 | 4.61 ▼40.28 |
Dashboard /wp-admin | 2.30 ▼1.01 | 6.52 ▼43.58 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 7.35 ▼37.52 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 7.80 ▼80.43 |
Media Library /wp-admin/upload.php | 2.30 ▼0.94 | 5.90 ▼28.52 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Code Block ScratchPad
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲178 | 14.57 ▲0.28 | 4.47 ▲2.40 | 39.08 ▼0.20 |
Dashboard /wp-admin | 2,249 ▲64 | 5.82 ▼0.04 | 117.14 ▲14.60 | 44.42 ▼0.67 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.77 ▲0.72 | 43.22 ▲3.60 | 36.22 ▼3.39 |
Add New Post /wp-admin/post-new.php | 1,563 ▲21 | 18.80 ▲0.49 | 602.60 ▼14.59 | 35.07 ▼19.75 |
Media Library /wp-admin/upload.php | 1,428 ▲49 | 5.17 ▲0.95 | 101.02 ▼2.76 | 41.41 ▼3.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/acb-scratchpad/acb-scratchpad.php+858
The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acb-scratchpad/acb-scratchpad.php:878
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Requires php: Version format is invalid
- Tags: You are using too many tags: 11 tag instead of maximum 10
acb-scratchpad/acb-scratchpad.php Passed 13 tests
"Code Block ScratchPad" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
123 characters long description:
A simple scratchpad/testbed for testing, and installing small additions to, pre-existing PHP/JS/CSS website/addin-code code
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin657 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 129 | 159 | 594 |
JavaScript | 3 | 1 | 2 | 58 |
CSS | 2 | 0 | 1 | 5 |
LESS | 1 | 0 | 1 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 17 | 85.00% |
▷ Anonymous functions | 3 | 15.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.07MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot.png | 70.11KB | 28.70KB | ▼ 59.06% |