84% gauge-meter-slider-jquery

Code Review | Gauge Meter Slider

WordPress plugin Gauge Meter Slider scored84%from 54 tests.

About plugin

  • Plugin page: gauge-meter-slide...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.8
  • WordPress version: 6.3.1
  • First release: Jun 5, 2014
  • Latest release: Jun 5, 2014
  • Number of updates: 2
  • Update frequency: every 2.0 days
  • Top authors: diegpl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,232 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
The plugin installed gracefully, with no errors

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

Server-side resources used by Gauge Meter Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.74 ▼3.38
Dashboard /wp-admin3.31 ▼0.0344.50 ▼12.06
Posts /wp-admin/edit.php3.36 ▲0.0044.95 ▼4.32
Add New Post /wp-admin/post-new.php5.89 ▲0.0089.65 ▼11.85
Media Library /wp-admin/upload.php3.23 ▲0.0035.63 ▲3.70

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Gauge Meter Slider
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7114.10 ▼0.172.41 ▲0.7542.98 ▲3.15
Dashboard /wp-admin2,192 ▲225.46 ▼0.0692.08 ▼12.2039.72 ▼2.03
Posts /wp-admin/edit.php2,103 ▼01.97 ▲0.0234.70 ▼9.9933.03 ▼8.30
Add New Post /wp-admin/post-new.php1,526 ▼223.27 ▲0.53601.55 ▼5.8044.29 ▼3.30
Media Library /wp-admin/upload.php1,403 ▼04.24 ▲0.0393.92 ▼6.1640.30 ▼2.22

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/gauge-meter-slider-jquery/insert-it-at-head.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (The Gauge Meter with Slider, made with jQuery)
You can look at the official readme.txt

gauge-meter-slider-jquery/insert-it-at-head.php 92% from 13 tests

"Gauge Meter Slider" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gauge-meter-slider-jquery.php" instead of "insert-it-at-head.php")

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
Everything looks great! No dangerous files found in this plugin3,914 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
CSS2702863,729
JavaScript91634115
HTML10053
PHP151117

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
250 PNG files occupy 0.44MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
jqwidgets/styles/images/overcast/ui-bg_flat_0_eeeeee_40x100.png0.18KB0.08KB▼ 51.67%
jqwidgets/styles/images/sunny/ui-icons_3d3d3d_256x240.png4.27KB4.11KB▼ 3.78%
jqwidgets/styles/images/icon-last-white.png0.15KB0.12KB▼ 23.57%
jqwidgets/styles/images/start/ui-icons_f7a50d_256x240.png5.23KB4.11KB▼ 21.49%
jqwidgets/styles/images/wp_check_indeterminate_white.png0.92KB0.10KB▼ 88.82%