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
- > Warning in wp-content/plugins/downloadable-gallery/downloadable_gallery-plugin.php+20
Declaration of downloadable_gallery_class::pluginInfoRight($info) should be compatible with basic_plugin_class::pluginInfoRight($info, $added = false)
Server metrics [RAM: ▼1.90MB] [CPU: ▼53.89ms] Passed 4 tests
Analyzing server-side resources used by downloadable gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 5.05 ▼38.78 |
Dashboard /wp-admin | 2.10 ▼1.20 | 5.95 ▼45.32 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.48 ▼42.48 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.78 | 7.56 ▼88.96 |
Media Library /wp-admin/upload.php | 2.10 ▼1.12 | 6.07 ▼34.87 |
Funsite plugins /wp-admin/plugins.php?page=funsite_plugins | 2.11 | 5.67 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by downloadable gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,799 ▲38 | 14.35 ▼0.21 | 1.68 ▲0.02 | 44.68 ▼5.94 |
Dashboard /wp-admin | 2,200 ▲20 | 5.64 ▼0.02 | 96.83 ▼5.29 | 41.90 ▼0.72 |
Posts /wp-admin/edit.php | 2,108 ▲8 | 2.01 ▲0.00 | 39.94 ▲5.85 | 35.10 ▼7.39 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 22.99 ▲0.08 | 651.91 ▼18.55 | 59.53 ▼13.68 |
Media Library /wp-admin/upload.php | 1,405 ▲5 | 4.22 ▲0.05 | 101.85 ▼14.13 | 43.03 ▼5.95 |
Funsite plugins /wp-admin/plugins.php?page=funsite_plugins | 827 | 2.00 | 25.48 | 25.97 |
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 had uncaught errors
- > Warning in wp-content/plugins/downloadable-gallery/downloadable_gallery-plugin.php+20
Declaration of downloadable_gallery_class::pluginInfoRight($info) should be compatible with basic_plugin_class::pluginInfoRight($info, $added = false)
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/plugins.php?page=funsite_plugins
- > Warning in wp-content/plugins/downloadable-gallery/downloadable_gallery-plugin.php+20
Declaration of downloadable_gallery_class::pluginInfoRight($info) should be compatible with basic_plugin_class::pluginInfoRight($info, $added = false)
SRP Passed 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
The SRP test was a success
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== downloadable-gallery ===
)
downloadable-gallery/downloadable_gallery.php 92% from 13 tests
The primary PHP file in "downloadable gallery" version 1.3 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("downloadable-gallery.php" instead of "downloadable_gallery.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected185 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 21 | 0 | 100 |
PHP | 2 | 19 | 18 | 54 |
PO File | 1 | 3 | 5 | 25 |
JavaScript | 1 | 0 | 0 | 6 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 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 | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
basics/icon-128x128.png | 20.08KB | 8.01KB | ▼ 60.11% |