84% myqtip-easy-qtip2

Code Review | MyQtip - easy qTip2

WordPress plugin MyQtip - easy qTip2 scored84%from 54 tests.

About plugin

  • Plugin page: myqtip-easy-qtip2
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.5
  • WordPress version: 6.3.1
  • First release: Jan 13, 2013
  • Latest release: Jan 9, 2015
  • Number of updates: 48
  • Update frequency: every 15.1 days
  • Top authors: dgamoni (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,152 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.89ms] Passed 4 tests

A check of server-side resources used by MyQtip - easy qTip2
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0838.68 ▼7.42
Dashboard /wp-admin3.37 ▲0.0643.14 ▼6.78
Posts /wp-admin/edit.php3.42 ▲0.0646.19 ▲2.26
Add New Post /wp-admin/post-new.php5.95 ▲0.0591.17 ▲3.62
Media Library /wp-admin/upload.php3.29 ▲0.0635.26 ▲0.40

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for MyQtip - easy qTip2
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,930 ▲19513.61 ▼0.626.47 ▲4.5643.15 ▼2.22
Dashboard /wp-admin2,225 ▲404.89 ▼0.17102.55 ▼0.4943.50 ▼1.40
Posts /wp-admin/edit.php2,108 ▲222.06 ▲0.0739.66 ▲1.3935.89 ▲4.44
Add New Post /wp-admin/post-new.php1,527 ▲1317.75 ▲0.04615.79 ▼138.9651.16 ▼23.90
Media Library /wp-admin/upload.php1,404 ▲194.23 ▼0.0293.47 ▼8.3340.87 ▼2.70

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 2× 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/myqtip-easy-qtip2/getoptions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/myqtip-easy-qtip2/my-q-tip.php:29

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: tips, myqtip, qtip2, tooltip, link text...

myqtip-easy-qtip2/my-q-tip.php 85% from 13 tests

The main file in "MyQtip - easy qTip2" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("myqtip-easy-qtip2.php" instead of "my-q-tip.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 241 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,910 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript16005302,273
CSS112265413
PHP27824224

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code2.67
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%
Functions6
▷ Named functions6100.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
3 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png2.65KB2.35KB▼ 11.43%
screenshot-1.png50.06KB32.28KB▼ 35.52%
screenshot-2.png10.77KB7.85KB▼ 27.06%