Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/bike-events/bike_events.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; BikeEventsWidget has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼199.45ms] Passed 4 tests
This is a short check of server-side resources used by Bike Events
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.80 ▼1.04 | 5.99 ▼36.43 |
Dashboard /wp-admin | 1.81 ▼1.24 | 6.77 ▼54.69 |
Posts /wp-admin/edit.php | 1.82 ▼1.29 | 6.95 ▼43.98 |
Add New Post /wp-admin/post-new.php | 1.81 ▼3.62 | 5.62 ▼662.70 |
Media Library /wp-admin/upload.php | 1.81 ▼1.19 | 4.66 ▼32.40 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_bikeeventswidget |
Browser metrics Passed 4 tests
An overview of browser requirements for Bike Events
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 15.79 ▼0.16 | 8.21 ▼1.60 | 47.44 ▼6.15 |
Dashboard /wp-admin | 2,992 ▲58 | 5.91 ▲0.00 | 139.64 ▼24.03 | 116.55 ▼21.86 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▲0.01 | 71.02 ▼5.32 | 94.06 ▲4.67 |
Add New Post /wp-admin/post-new.php | 1,615 ▼68 | 21.40 ▲2.61 | 265.82 ▼101.56 | 114.06 ▼7.17 |
Media Library /wp-admin/upload.php | 1,807 ▼3 | 4.98 ▼0.03 | 166.41 ▼14.66 | 116.83 ▼9.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/bike-events/bike_events.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; BikeEventsWidget has a deprecated constructor
- The uninstall procedure has failed, leaving 1 option in the database
- widget_bikeeventswidget
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
Even though no errors were found, 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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/bike-events/bike_events.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: You are using too many tags: 14 tag instead of maximum 10
bike-events/bike_events.php 92% from 13 tests
The principal PHP file in "Bike Events" v. 2.1 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("bike-events.php" instead of "bike_events.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected105 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 9 | 72 |
JavaScript | 1 | 7 | 2 | 33 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.03 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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