84% wp-liveracers

Code Review | WordPress LiveRacers

WordPress plugin WordPress LiveRacers scored 84% from 54 tests.

About plugin

  • Plugin page: wp-liveracers
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.2.4
  • WordPress version: 6.3.1
  • First release: Jun 20, 2014
  • Latest release: Aug 18, 2015
  • Number of updates: 5
  • Update frequency: every 85.0 days
  • Top authors: pglewis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,173 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.30ms] Passed 4 tests

This is a short check of server-side resources used by WordPress LiveRacers
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.29 ▼3.88
Dashboard /wp-admin3.32 ▲0.0144.03 ▼11.87
Posts /wp-admin/edit.php3.37 ▲0.0148.13 ▲3.69
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.27 ▼1.15
Media Library /wp-admin/upload.php3.24 ▲0.0138.34 ▲5.59

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments
widget_wp_liveracers
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress LiveRacers
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,907 ▲15013.67 ▼0.6010.58 ▲8.1542.40 ▼3.39
Dashboard /wp-admin2,203 ▲125.82 ▼0.0699.72 ▼6.8638.62 ▲0.82
Posts /wp-admin/edit.php2,089 ▼02.03 ▼0.0235.25 ▼0.6132.93 ▼0.44
Add New Post /wp-admin/post-new.php1,535 ▲2123.47 ▲5.96673.01 ▼25.8649.13 ▼13.40
Media Library /wp-admin/upload.php1,388 ▼04.24 ▲0.0394.37 ▼2.1541.07 ▼1.43

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_wp_liveracers
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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 | 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
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-liveracers/includes/wp-liveracers-widget.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-liveracers/wp-liveracers.php:131

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 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: liveracers, simracing

wp-liveracers/wp-liveracers.php 92% from 13 tests

The main PHP file in "WordPress LiveRacers" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected120 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP24990110
JavaScript161410

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity8.00
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity2.40
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods660.00%
▷ Public methods10100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin