84% wow-tcgbrowser-card-tooltips

Code Review | WoW TCGBrowser Card Tooltips

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

About plugin

  • Plugin page: wow-tcgbrowser-ca...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8.6-3.9
  • WordPress version: 6.3.1
  • First release: Aug 19, 2013
  • Latest release: Apr 22, 2014
  • Number of updates: 9
  • Update frequency: every 27.6 days
  • Top authors: bogycoins (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /773 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.01MB] [CPU: ▼8.74ms] Passed 4 tests

Server-side resources used by WoW TCGBrowser Card Tooltips
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0132.75 ▼6.02
Dashboard /wp-admin3.31 ▲0.0143.22 ▼7.23
Posts /wp-admin/edit.php3.36 ▲0.0147.82 ▲2.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.55 ▼20.92
Media Library /wp-admin/upload.php3.24 ▲0.0133.51 ▼0.79

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for WoW TCGBrowser Card Tooltips
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,897 ▲15113.66 ▼0.655.58 ▲3.8137.92 ▼5.07
Dashboard /wp-admin2,212 ▲205.85 ▲0.90114.95 ▲3.3442.20 ▼1.01
Posts /wp-admin/edit.php2,098 ▲302.04 ▲0.0141.32 ▲6.9834.29 ▼0.38
Add New Post /wp-admin/post-new.php1,533 ▼523.05 ▼0.17682.61 ▲22.7276.66 ▲23.99
Media Library /wp-admin/upload.php1,391 ▼04.21 ▲0.00102.67 ▼4.8640.89 ▼6.36

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wow-tcgbrowser-card-tooltips/wow-tcgbrowser-card-tooltips.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: tcgbrowser, tooltips, wow, world of warcraft, cards...

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

The principal PHP file in "WoW TCGBrowser Card Tooltips" v. 1.0 is loaded by WordPress automatically on each request
89 characters long description:
Transform WoW 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 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin45 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript132527
PHP17818

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/wow.png1.73KB1.10KB▼ 36.33%