84% duels-of-champions-tcgbrowser-card-tooltips

Code Review | Duels of Champions TCGBrowser Card Tooltips

WordPress plugin Duels of Champions TCGBrowser Card Tooltips scored84%from 54 tests.

About plugin

  • Plugin page: duels-of-champion...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.6-3.9
  • WordPress version: 6.3.1
  • First release: Mar 18, 2014
  • Latest release: Apr 22, 2014
  • Number of updates: 4
  • Update frequency: every 8.7 days
  • Top authors: bogycoins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /710 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
This plugin's installer ran successfully

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

A check of server-side resources used by Duels of Champions TCGBrowser Card Tooltips
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.86 ▼14.20
Dashboard /wp-admin3.31 ▲0.0150.11 ▼1.42
Posts /wp-admin/edit.php3.36 ▲0.0150.80 ▼7.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.54 ▼12.23
Media Library /wp-admin/upload.php3.24 ▲0.0138.48 ▲5.88

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Duels of Champions TCGBrowser Card Tooltips
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17013.57 ▼0.818.34 ▲6.5638.09 ▼4.62
Dashboard /wp-admin2,210 ▲254.85 ▼1.03108.66 ▲2.9841.51 ▼2.45
Posts /wp-admin/edit.php2,093 ▲41.99 ▼0.0239.67 ▼1.7738.42 ▲3.57
Add New Post /wp-admin/post-new.php1,534 ▲2023.35 ▲5.68615.60 ▼66.8362.27 ▲7.46
Media Library /wp-admin/upload.php1,395 ▲74.22 ▲0.01100.66 ▼4.5742.96 ▼2.28

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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
Good news, no errors were detected

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
  • 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/duels-of-champions-tcgbrowser-card-tooltips/mmdoc-tcgbrowser-card-tooltips.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
6 plugin tags: tooltips, cards, mmdoc, duel of champions, tcg...

duels-of-champions-tcgbrowser-card-tooltips/mmdoc-tcgbrowser-card-tooltips.php 92% from 13 tests

The main PHP file in "Duels of Champions TCGBrowser Card Tooltips" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("duels-of-champions-tcgbrowser-card-tooltips.php" instead of "mmdoc-tcgbrowser-card-tooltips.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin52 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript132529
PHP16923

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
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%
Functions3
▷ Named functions3100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/mmdoc.png0.72KB0.94KB0.00%