83% awesome-tool-tip

Code Review | Awesome Tool Tip

WordPress plugin Awesome Tool Tip scored83%from 54 tests.

About plugin

  • Plugin page: awesome-tool-tip
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3.1-4.3.1
  • WordPress version: 6.3.1
  • First release: Dec 9, 2015
  • Latest release: Dec 9, 2015
  • Number of updates: 6
  • Update frequency: N/A
  • Top authors: Md. Shiddikur Rahman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /963 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Awesome Tool Tip
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.59 ▼2.42
Dashboard /wp-admin3.31 ▲0.0146.49 ▼2.70
Posts /wp-admin/edit.php3.36 ▲0.0144.48 ▼1.89
Add New Post /wp-admin/post-new.php5.89 ▲0.0186.50 ▼0.36
Media Library /wp-admin/upload.php3.23 ▲0.0033.65 ▼1.95

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Awesome Tool Tip
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲3113.30 ▼1.061.92 ▼0.0843.57 ▼1.71
Dashboard /wp-admin2,206 ▲174.83 ▼0.15100.72 ▼8.0138.01 ▼0.31
Posts /wp-admin/edit.php2,086 ▼32.06 ▲0.0735.31 ▼1.1633.21 ▼4.07
Add New Post /wp-admin/post-new.php1,533 ▲1423.45 ▲0.35683.51 ▲30.5162.65 ▲3.08
Media Library /wp-admin/upload.php1,391 ▲64.18 ▲0.0198.54 ▼4.1142.27 ▼5.91

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • 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
Even though everything seems fine, this is not 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
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/awesome-tool-tip/awesome_tool_tip_main.php:13
    • > PHP Warning
      Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/awesome-tool-tip/awesome_tool_tip_main.php on line 13

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that need to be fixed:
  • Contributors: Plugin contributors not specified
  • Screenshots: These screenshots require images: #1 (Demo Screenshots 1.), #2 (Demo Screenshots 2.), #3 (admin panel plugin option.)
You can look at the official readme.txt

awesome-tool-tip/awesome_tool_tip_main.php 92% from 13 tests

"Awesome Tool Tip" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("awesome-tool-tip.php" instead of "awesome_tool_tip_main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin101 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS115273
PHP1201117
SVG20011

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%
Constants1
▷ Global constants1100.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.23MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
Screenshot-3.png75.82KB29.32KB▼ 61.33%
Screenshot-1.png78.69KB27.28KB▼ 65.34%
Screenshot-2.png80.88KB29.31KB▼ 63.76%