84% meeple-like-us-boardgamegeek

Code Review | Meeple Like Us Boardgamegeek Plugin

WordPress plugin Meeple Like Us Boardgamegeek Plugin scored84%from 54 tests.

About plugin

  • Plugin page: meeple-like-us-bo...
  • Plugin version: 1.6.5
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Apr 9, 2018
  • Latest release: Mar 10, 2021
  • Number of updates: 40
  • Update frequency: every 26.7 days
  • Top authors: drakkos (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active /1,496 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.29MB] [CPU: ▼7.10ms] Passed 4 tests

Server-side resources used by Meeple Like Us Boardgamegeek Plugin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.74 ▲0.2743.98 ▲0.14
Dashboard /wp-admin3.61 ▲0.2654.09 ▼12.12
Posts /wp-admin/edit.php3.73 ▲0.3652.82 ▲1.02
Add New Post /wp-admin/post-new.php6.20 ▲0.3190.28 ▼17.45
Media Library /wp-admin/upload.php3.53 ▲0.3049.43 ▲13.07

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 4 new files
Database: 1 new table, 15 new options
New tables
wp_mlubgg
New WordPress options
can_compress_scripts
AverageWeight
Publishers
theysaidso_admin_options
Designers
Affiliate
widget_theysaidso_widget
Mechanisms
db_upgraded
widget_recent-posts
...

Browser metrics Passed 4 tests

A check of browser resources used by Meeple Like Us Boardgamegeek Plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1814.35 ▲0.001.73 ▼0.3047.02 ▲2.45
Dashboard /wp-admin2,195 ▲245.59 ▼0.0987.08 ▼4.0975.59 ▲31.79
Posts /wp-admin/edit.php2,115 ▲151.97 ▼0.0334.04 ▼3.9432.53 ▼0.89
Add New Post /wp-admin/post-new.php1,692 ▲16622.09 ▼1.56736.07 ▲55.1550.17 ▼2.89
Media Library /wp-admin/upload.php1,412 ▲124.15 ▲0.05111.30 ▼2.2576.82 ▲27.02

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 15 options in the database
    • Mechanisms
    • db_upgraded
    • widget_recent-posts
    • BggRank
    • AverageWeight
    • Artists
    • Designers
    • PlayCount
    • widget_theysaidso_widget
    • can_compress_scripts
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/meeple-like-us-boardgamegeek/bgg.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/meeple-like-us-boardgamegeek/bgg.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: boardgamegeek, gaming, accessibility, boardgame

meeple-like-us-boardgamegeek/bgg.php 92% from 13 tests

"Meeple Like Us Boardgamegeek Plugin" version 1.6.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("meeple-like-us-boardgamegeek.php" instead of "bgg.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,405 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP25121031,405

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions45
▷ Named functions45100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
icon.png1.26KB1.32KB0.00%