84% keep-the-score

Code Review | Keep the Score

WordPress plugin Keep the Score scored84%from 54 tests.

About plugin

  • Plugin page: keep-the-score
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Mar 11, 2022
  • Latest release: Aug 10, 2023
  • Number of updates: 10
  • Update frequency: every 51.7 days
  • Top authors: caspii (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active /1,081 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼8.98ms] Passed 4 tests

Server-side resources used by Keep the Score
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.37 ▼10.19
Dashboard /wp-admin3.31 ▲0.0047.42 ▼9.70
Posts /wp-admin/edit.php3.36 ▲0.0048.84 ▼4.43
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.57 ▼11.60
Media Library /wp-admin/upload.php3.23 ▲0.0031.46 ▼4.30

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Keep the Score
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.26 ▼1.121.92 ▼8.7444.30 ▼21.47
Dashboard /wp-admin2,203 ▲215.86 ▲0.9698.66 ▼35.2539.76 ▼22.90
Posts /wp-admin/edit.php2,086 ▼31.98 ▼0.0135.30 ▼3.3132.80 ▼5.72
Add New Post /wp-admin/post-new.php1,536 ▲323.32 ▲2.35656.83 ▼93.5053.05 ▼1.62
Media Library /wp-admin/upload.php1,385 ▼64.22 ▲0.1095.84 ▼19.6241.68 ▼8.93

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% 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)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/keep-the-score/keepthescore.php:66

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)
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: leaderboard, gamification, scoreboard

keep-the-score/keepthescore.php 85% from 13 tests

Analyzing the main PHP file in "Keep the Score" version 1.0.0
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("keep-the-score.php" instead of "keepthescore.php")
  • Requires at least: Required version must match the one declared in readme.txt ("5.0" instead of "5.2")

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
There were no executable files found in this plugin29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1132729

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin