83% tcg-card-links

Code Review | TCG Card Links

WordPress plugin TCG Card Links scored83%from 54 tests.

About plugin

  • Plugin page: tcg-card-links
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-3.6
  • WordPress version: 6.3.1
  • First release: Oct 15, 2013
  • Latest release: Oct 25, 2013
  • Number of updates: 8
  • Update frequency: every 1.3 days
  • Top authors: Indrajeetpal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Server metrics [RAM: ▲0.02MB] [CPU: ▼7.52ms] Passed 4 tests

Server-side resources used by TCG Card Links
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0237.29 ▼2.73
Dashboard /wp-admin3.33 ▼0.0145.98 ▼8.51
Posts /wp-admin/edit.php3.38 ▲0.0348.41 ▲2.84
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.32 ▼17.66
Media Library /wp-admin/upload.php3.26 ▲0.0334.99 ▼1.16
TCG Card Links /wp-admin/options-general.php?page=mtgCardsRef_settings3.2229.53

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 36 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by TCG Card Links
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲15513.71 ▼0.925.08 ▲3.3037.95 ▼6.50
Dashboard /wp-admin2,216 ▲286.03 ▲0.1797.63 ▼7.3945.08 ▲6.34
Posts /wp-admin/edit.php2,099 ▲72.04 ▲0.0540.72 ▼0.4136.44 ▲0.25
Add New Post /wp-admin/post-new.php1,532 ▲418.19 ▼0.05636.68 ▲22.1460.18 ▲9.57
Media Library /wp-admin/upload.php1,398 ▲74.25 ▲0.0397.31 ▼0.6344.01 ▼0.02
TCG Card Links /wp-admin/options-general.php?page=mtgCardsRef_settings7891.7325.5826.14

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
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • 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)
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/tcg-card-links/tcg-card-links.php
    • > /wp-content/plugins/tcg-card-links/api.php

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 (Screenshot 1), #2 (Screenshot 2), #3 (Screenshot 3), #4 (Screenshot 4)
  • Tags: Please delete some tags, you are using 24 tag instead of maximum 10
Please take inspiration from this readme.txt

tcg-card-links/tcg-card-links.php 92% from 13 tests

The main PHP file in "TCG Card Links" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 305 characters long)

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
Success! There were no dangerous files found in this plugin416 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP34215166
CSS160131
JavaScript31237119

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
5 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/itunes.png5.12KB2.22KB▼ 56.59%
images/tr.png0.71KB0.57KB▼ 20.38%
images/tl.png0.59KB0.49KB▼ 17.49%
images/bl.png2.99KB2.84KB▼ 5.22%
images/br.png0.88KB0.71KB▼ 18.76%