84% hex-tcgbrowser-card-tooltips

Code Review | Hex TCGBrowser Card Tooltips

WordPress plugin Hex TCGBrowser Card Tooltips scored84%from 54 tests.

About plugin

  • Plugin page: hex-tcgbrowser-ca...
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.6-4.2.2
  • WordPress version: 6.3.1
  • First release: Aug 18, 2013
  • Latest release: May 7, 2015
  • Number of updates: 24
  • Update frequency: every 26.2 days
  • Top authors: bogycoins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,277 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
Install script ran successfully

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

Analyzing server-side resources used by Hex TCGBrowser Card Tooltips
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0039.99 ▼2.39
Dashboard /wp-admin3.31 ▲0.0152.17 ▲0.94
Posts /wp-admin/edit.php3.36 ▲0.0048.76 ▼3.49
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.12 ▼6.75
Media Library /wp-admin/upload.php3.23 ▲0.0038.96 ▲2.61

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Hex TCGBrowser Card Tooltips
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,905 ▲14413.52 ▼0.859.90 ▲7.6343.42 ▼2.83
Dashboard /wp-admin2,196 ▲165.54 ▼0.1490.97 ▲0.2141.39 ▼1.62
Posts /wp-admin/edit.php2,104 ▲72.01 ▼0.0346.27 ▲9.3033.81 ▼1.57
Add New Post /wp-admin/post-new.php1,683 ▲13822.54 ▼0.85651.36 ▼3.1552.96 ▼3.32
Media Library /wp-admin/upload.php1,404 ▲44.28 ▲0.01101.49 ▼6.6045.88 ▲3.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

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)
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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hex-tcgbrowser-card-tooltips/hex-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, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: tooltips, tcg, hex, tcgbrowser, cards

hex-tcgbrowser-card-tooltips/hex-tcgbrowser-card-tooltips.php Passed 13 tests

The primary PHP file in "Hex TCGBrowser Card Tooltips" version 1.6 is used by WordPress to initiate all plugin functionality
89 characters long description:
Transform Hex TCG card names into links that show the card image when hovering over them.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin59 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript152536
PHP16923

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.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

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
images/hex.png1.09KB1.22KB0.00%