84% boardgameprices

Code Review | BoardGamePrices

WordPress plugin BoardGamePrices scored84%from 54 tests.

About plugin

  • Plugin page: boardgameprices
  • Plugin version: 1.1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.7
  • WordPress version: 6.3.1
  • First release: Jan 30, 2014
  • Latest release: Apr 6, 2021
  • Number of updates: 30
  • Update frequency: every 87.5 days
  • Top authors: keanpedersen (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,107 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.06MB] [CPU: ▼5.75ms] Passed 4 tests

A check of server-side resources used by BoardGamePrices
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0638.88 ▼5.49
Dashboard /wp-admin3.37 ▲0.0649.19 ▼1.67
Posts /wp-admin/edit.php3.42 ▲0.0649.76 ▲1.45
Add New Post /wp-admin/post-new.php5.95 ▲0.0689.01 ▼12.27
Media Library /wp-admin/upload.php3.29 ▲0.0637.04 ▼3.58
BoardGamePrices /wp-admin/options-general.php?page=boardgameprices3.2634.78

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for BoardGamePrices
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.21 ▼1.011.89 ▼0.3143.30 ▼1.03
Dashboard /wp-admin2,207 ▲195.83 ▼0.07100.89 ▼4.4841.86 ▼1.39
Posts /wp-admin/edit.php2,096 ▲72.04 ▲0.0240.59 ▼1.3636.61 ▼0.17
Add New Post /wp-admin/post-new.php1,517 ▼217.55 ▼5.71679.99 ▲34.1456.18 ▲0.94
Media Library /wp-admin/upload.php1,389 ▲44.23 ▲0.03102.23 ▲4.4644.26 ▼2.49
BoardGamePrices /wp-admin/options-general.php?page=boardgameprices9572.0425.0427.58

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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget
    • 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)
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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/boardgameprices/boardgameprices.php:300

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: board, game, boardgameprices, prices, price...

boardgameprices/boardgameprices.php Passed 13 tests

"BoardGamePrices" version 1.1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
55 characters long description:
Short code for embedding the best price for board games

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected445 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13914259
PO File25862138
CSS112048

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions13
▷ Named functions13100.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
PNG images were not found in this plugin