10% bike-events

Code Review | Bike Events

WordPress plugin Bike Events scored 10% from 54 tests.

About plugin

  • Plugin page: bike-events
  • Plugin version: 2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5.2
  • WordPress version: 5.8.1
  • First release: Sep 19, 2012
  • Latest release: Jul 26, 2013
  • Number of updates: 101
  • Update frequency: every 3.1 days
  • Top authors: FreeHub (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,234 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /1.80 ▼1.045.99 ▼36.43
Dashboard /wp-admin1.81 ▼1.246.77 ▼54.69
Posts /wp-admin/edit.php1.82 ▼1.296.95 ▼43.98
Add New Post /wp-admin/post-new.php1.81 ▼3.625.62 ▼662.70
Media Library /wp-admin/upload.php1.81 ▼1.194.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.79 ▼0.168.21 ▼1.6047.44 ▼6.15
Dashboard /wp-admin2,992 ▲585.91 ▲0.00139.64 ▼24.03116.55 ▼21.86
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0171.02 ▼5.3294.06 ▲4.67
Add New Post /wp-admin/post-new.php1,615 ▼6821.40 ▲2.61265.82 ▼101.56114.06 ▼7.17
Media Library /wp-admin/upload.php1,807 ▼34.98 ▼0.03166.41 ▼14.66116.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

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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP123972
JavaScript17233

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 code0.03
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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