Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.25MB] [CPU: ▼12.49ms] Passed 4 tests
An overview of server-side resources used by Simple Block Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.17 ▲0.40 |
Dashboard /wp-admin | 3.33 ▼0.01 | 49.04 ▼5.79 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.89 ▲0.86 |
Add New Post /wp-admin/post-new.php | 4.85 ▼1.04 | 52.32 ▼43.92 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 34.10 ▼0.65 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Simple Block Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲43 | 14.35 ▲0.06 | 1.84 ▲0.13 | 43.59 ▲2.89 |
Dashboard /wp-admin | 2,198 ▲17 | 5.62 ▼0.09 | 98.80 ▼1.90 | 42.72 ▼0.33 |
Posts /wp-admin/edit.php | 2,097 ▼3 | 1.95 ▼0.05 | 34.42 ▼4.19 | 34.54 ▲2.24 |
Add New Post /wp-admin/post-new.php | 6,198 ▲4,670 | 18.92 ▼4.13 | 908.85 ▲216.08 | 60.93 ▲9.72 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.21 ▲0.03 | 95.97 ▼13.33 | 39.93 ▼9.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-block-gallery/lib/class-simpleblockgallery.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/simple-block-gallery/lib/class-simpleblockgallery.php:37
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: gallery, block, masonry, images, slider
simple-block-gallery/simpleblockgallery.php 92% from 13 tests
The principal PHP file in "Simple Block Gallery" v. 1.05 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("simple-block-gallery.php" instead of "simpleblockgallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected388 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 26 | 0 | 264 |
PHP | 4 | 21 | 69 | 107 |
JSON | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
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 | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin