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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.23MB] [CPU: ▼150.20ms] Passed 4 tests
Server-side resources used by Guten Free Options
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.19 ▲0.35 | 46.17 ▲15.95 |
Dashboard /wp-admin | 3.44 ▲0.38 | 46.74 ▲1.11 |
Posts /wp-admin/edit.php | 3.53 ▲0.42 | 45.56 ▼0.80 |
Add New Post /wp-admin/post-new.php | 3.44 ▼2.00 | 46.78 ▼602.29 |
Media Library /wp-admin/upload.php | 3.36 ▲0.35 | 31.65 ▲1.19 |
Guten Free /wp-admin/options-general.php?page=guten-free-options | 3.36 | 31.87 |
Add New (Block) /wp-admin/post-new.php?post_type=post&editor=block | 5.33 | 80.39 |
Add New (Block) /wp-admin/post-new.php?post_type=page&editor=block | 5.31 | 73.83 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
guten_free_options |
Browser metrics Passed 4 tests
Checking browser requirements for Guten Free Options
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,718 ▲123 | 15.80 ▲0.05 | 11.30 ▲0.98 | 49.50 ▼0.06 |
Dashboard /wp-admin | 2,985 ▲54 | 5.92 ▼0.06 | 137.77 ▼12.23 | 114.24 ▼1.58 |
Posts /wp-admin/edit.php | 2,754 ▲15 | 2.72 ▲0.01 | 66.43 ▲0.35 | 99.57 ▲7.04 |
Add New Post /wp-admin/post-new.php | 4,289 ▲2,606 | 8.93 ▼9.88 | 229.16 ▼147.27 | 164.64 ▲53.62 |
Media Library /wp-admin/upload.php | 1,822 ▲12 | 5.05 ▼0.01 | 140.80 ▲6.25 | 118.37 ▼1.69 |
Guten Free /wp-admin/options-general.php?page=guten-free-options | 1,655 | 2.13 | 57.25 | 90.03 |
Add New (Block) /wp-admin/post-new.php?post_type=post&editor=block | 6,016 | 23.72 | 468.46 | 135.23 |
Add New (Block) /wp-admin/post-new.php?post_type=page&editor=block | 6,108 | 19.49 | 430.10 | 130.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 did not uninstall successfully, leaving 1 option in the database
- guten_free_options
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=page&editor=block
- > Notice in wp-content/plugins/guten-free-options/guten-free-options.php+2267
Undefined variable: onchange
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: block editor, gutenberg, options, classic editor
guten-free-options/guten-free-options.php Passed 13 tests
"Guten Free Options" version 0.9.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
68 characters long description:
Gutenberg Free Options for your WordPressed Burger err I mean Editor
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
Success! There were no dangerous files found in this plugin1,579 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 380 | 625 | 1,579 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
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 | 60 | |
▷ Named functions | 60 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/wpmedic.png | 4.65KB | 2.48KB | ▼ 46.68% |
images/guten-free-options.png | 37.75KB | 10.10KB | ▼ 73.25% |