Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/venuedog-events/lib/widget.venuedog.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; VenueDog_Widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼49.46ms] Passed 4 tests
Analyzing server-side resources used by VenueDog Events
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.72 ▼35.40 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.15 ▼44.16 |
Posts /wp-admin/edit.php | 2.09 ▼1.26 | 5.48 ▼39.79 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 6.71 ▼78.49 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.28 ▼28.58 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_venuedog |
Browser metrics Passed 4 tests
VenueDog Events: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,915 ▲180 | 14.33 ▼0.05 | 7.75 ▲5.82 | 41.36 ▼8.82 |
Dashboard /wp-admin | 2,225 ▲37 | 5.83 ▲0.95 | 96.33 ▼10.78 | 38.10 ▲0.26 |
Posts /wp-admin/edit.php | 2,105 ▲34 | 2.06 ▲0.04 | 38.98 ▼7.32 | 34.77 ▲0.08 |
Add New Post /wp-admin/post-new.php | 1,550 ▲8 | 18.54 ▲0.27 | 651.46 ▲39.90 | 64.34 ▲15.04 |
Media Library /wp-admin/upload.php | 1,404 ▲19 | 4.20 ▼0.03 | 93.85 ▼13.69 | 40.51 ▼3.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/venuedog-events/lib/widget.venuedog.php+6
Methods with the same name as their class will not be constructors in a future version of PHP; VenueDog_Widget has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_venuedog
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/venuedog-events/admin/global_options.php
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/venuedog-events/lib/widget.venuedog.php:6
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/venuedog-events/venuedog.php on line 12
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/venuedog-events/lib/widget.venuedog.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (VenueDog), #2 (VenueDog Events Widget)
venuedog-events/venuedog.php 92% from 13 tests
"VenueDog Events" version 1.1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress 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 ("venuedog-events.php" instead of "venuedog.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected399 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 34 | 21 | 163 |
PHP | 5 | 103 | 38 | 157 |
CSS | 1 | 1 | 1 | 38 |
Markdown | 1 | 10 | 0 | 23 |
HTML | 1 | 11 | 0 | 18 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 87.50% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 12.50% |
Functions | 5 | |
▷ Named functions | 5 | 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 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.52MB with 0.24MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/poweredby.png | 2.38KB | 1.89KB | ▼ 20.83% |
screenshot-2.png | 25.99KB | 8.39KB | ▼ 67.73% |
images/arrow.png | 0.18KB | 0.13KB | ▼ 30.69% |
screenshot-1.png | 506.72KB | 180.48KB | ▼ 64.38% |