Benchmarks
Plugin footprint Passed 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.01MB] [CPU: ▼262.33ms] Passed 4 tests
This is a short check of server-side resources used by Media Checkerboard
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 33.79 ▲12.14 |
Dashboard /wp-admin | 3.07 ▲0.02 | 52.05 ▲7.43 |
Posts /wp-admin/edit.php | 3.12 ▲0.02 | 44.78 ▲3.12 |
Add New Post /wp-admin/post-new.php | 5.43 ▲0.01 | 116.63 ▼1,056.04 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 36.81 ▼3.83 |
Media Checkerboard /wp-admin/options-general.php?page=checkerboard_admin_display | 2.98 | 29.73 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Media Checkerboard: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲105 | 15.86 ▲0.38 | 8.73 ▲2.11 | 48.01 ▲1.63 |
Dashboard /wp-admin | 2,970 ▲120 | 5.89 ▲0.02 | 137.84 ▲9.85 | 104.93 ▲6.10 |
Posts /wp-admin/edit.php | 2,714 ▲11 | 2.69 ▲0.00 | 65.12 ▼1.77 | 90.05 ▲0.99 |
Add New Post /wp-admin/post-new.php | 1,662 ▼376 | 18.33 ▼0.84 | 366.80 ▲9.69 | 111.24 ▲5.12 |
Media Library /wp-admin/upload.php | 1,779 ▲10 | 5.00 ▲0.00 | 150.39 ▲4.49 | 105.86 ▼4.61 |
Media Checkerboard /wp-admin/options-general.php?page=checkerboard_admin_display | 1,459 | 3.15 | 76.27 | 66.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/media-checkboard/checkboard.php:25
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Checkerboard background for a PNG file), #2 (Configuration page), #3 (Color picker)
media-checkboard/checkboard.php 92% from 13 tests
The main PHP script in "Media Checkerboard" version 1.1.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("media-checkboard.php" instead of "checkboard.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected72 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 16 | 8 | 67 |
JavaScript | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
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 | 3 | |
▷ Named functions | 3 | 100.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 1 test
Image compression Passed 1 test
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 20.87KB | 9.99KB | ▼ 52.14% |
screenshot-2.png | 13.16KB | 8.15KB | ▼ 38.03% |
screenshot-3.png | 28.82KB | 13.11KB | ▼ 54.51% |