Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wordcamp-miami-badges/includes/widget-wordcamp_miami_badge.php+313
Function create_function() is deprecated
Server metrics [RAM: ▼1.73MB] [CPU: ▼49.40ms] Passed 4 tests
An overview of server-side resources used by Wordcamp Miami Badges
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.26 ▼1.21 | 5.77 ▼31.89 |
Dashboard /wp-admin | 2.28 ▼1.03 | 7.78 ▼40.30 |
Posts /wp-admin/edit.php | 2.28 ▼1.08 | 6.84 ▼42.15 |
Add New Post /wp-admin/post-new.php | 2.28 ▼3.61 | 7.16 ▼83.27 |
Media Library /wp-admin/upload.php | 2.28 ▼0.95 | 6.16 ▼27.46 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
widget_wordcamp_miami_badge-id |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Wordcamp Miami Badges
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.83 ▲0.16 | 1.87 ▲0.12 | 43.53 ▼1.61 |
Dashboard /wp-admin | 2,206 ▲14 | 5.91 ▲0.81 | 104.88 ▼0.34 | 41.60 ▲0.63 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 1.98 ▼0.06 | 35.21 ▼4.29 | 34.26 ▲0.88 |
Add New Post /wp-admin/post-new.php | 1,574 ▲46 | 23.28 ▲4.83 | 670.60 ▲68.16 | 53.51 ▼2.01 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.20 ▼0.13 | 96.24 ▼1.10 | 41.55 ▲0.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wordcamp-miami-badges/includes/widget-wordcamp_miami_badge.php+313
Function create_function() is deprecated
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_wordcamp_miami_badge-id
Smoke tests 50% 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)
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wordcamp-miami-badges/includes/element-wordcamp_miami_badge.php
- > /wp-content/plugins/wordcamp-miami-badges/includes/field-dropdown.php
- 21× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: value in wp-content/plugins/wordcamp-miami-badges/includes/field-dropdown.php on line 32
- > PHP Notice
Undefined variable: settings in wp-content/plugins/wordcamp-miami-badges/includes/field-dropdown.php on line 3
- > PHP Notice
Undefined variable: settings in wp-content/plugins/wordcamp-miami-badges/includes/field-dropdown.php on line 21
- > PHP Notice
Undefined variable: settings in wp-content/plugins/wordcamp-miami-badges/includes/field-dropdown.php on line 25
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wordcamp-miami-badges/includes/element-wordcamp_miami_badge.php on line 3
- > PHP Notice
Undefined variable: atts in wp-content/plugins/wordcamp-miami-badges/includes/element-wordcamp_miami_badge.php on line 3
- > PHP Fatal error
Uncaught Error: Cannot access self:: when no class scope is active in wp-content/plugins/wordcamp-miami-badges/configs/fieldgroups-wordcamp_miami_badge.php:15
- > PHP Notice
Undefined variable: id in wp-content/plugins/wordcamp-miami-badges/includes/field-dropdown.php on line 20
- > PHP Notice
Undefined variable: name in wp-content/plugins/wordcamp-miami-badges/includes/field-dropdown.php on line 25
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wordcamp-miami-badges/includes/element-wordcamp_miami_badge.php on line 4
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: 2014, wordcamp, widget, shortcode, miami...
wordcamp-miami-badges/plugincore.php 85% from 13 tests
"Wordcamp Miami Badges" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wordcamp-miami-badges.php" instead of "plugincore.php")
- Domain Path: The domain path points to an invalid folder, "/lang" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,657 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 194 | 355 | 872 |
CSS | 3 | 21 | 8 | 547 |
JavaScript | 3 | 21 | 10 | 175 |
Markdown | 1 | 24 | 0 | 48 |
PO File | 1 | 0 | 0 | 15 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 72.50 |
▷ Minimum class complexity | 41.00 |
▷ Maximum class complexity | 104.00 |
Average method complexity | 5.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 35 | |
▷ Static methods | 10 | 28.57% |
▷ Public methods | 31 | 88.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 11.43% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon.png | 0.74KB | 0.81KB | 0.00% |
assets/images/white.png | 0.62KB | 0.79KB | 0.00% |