84% wowhead-tooltips

Code Review | WoWHead Tooltips

WordPress plugin WoWHead Tooltips scored84%from 54 tests.

About plugin

  • Plugin page: wowhead-tooltips
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4.2
  • WordPress version: 6.3.1
  • First release: Nov 19, 2012
  • Latest release: Mar 4, 2016
  • Number of updates: 14
  • Update frequency: every 85.8 days
  • Top authors: elmoo32 (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

100+ active /6,815 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Server-side resources used by WoWHead Tooltips
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0037.53 ▼11.09
Dashboard /wp-admin3.31 ▼0.0450.36 ▼13.89
Posts /wp-admin/edit.php3.36 ▲0.0045.00 ▼2.15
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.78 ▼7.51
Media Library /wp-admin/upload.php3.23 ▲0.0039.51 ▲1.70

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by WoWHead Tooltips
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲6213.90 ▼0.6520.24 ▲18.0738.68 ▼6.34
Dashboard /wp-admin2,198 ▲185.63 ▼0.0388.18 ▼4.7739.33 ▼4.29
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0935.92 ▼2.0533.12 ▼4.49
Add New Post /wp-admin/post-new.php1,526 ▼023.62 ▲0.76686.04 ▲38.6754.51 ▼1.47
Media Library /wp-admin/upload.php1,397 ▼34.19 ▼0.0098.15 ▼14.7542.63 ▼6.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wowhead-tooltips/wowhead-tooltips.php:43

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 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Donate link: Please fix this invalid URI: "-"
The official readme.txt might help

wowhead-tooltips/wowhead-tooltips.php Passed 13 tests

"WoWHead Tooltips" version 2.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
91 characters long description:
This plugin adds tooltips from World of Warcraft database site WoWHead with fancy tooltips.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin12 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102312

PHP code Passed 2 tests

A short review of 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.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected