83% range-slider-addon-for-acf

Code Review | Range Slider Addon for ACF

WordPress plugin Range Slider Addon for ACF scored83%from 54 tests.

About plugin

  • Plugin page: range-slider-addo...
  • Plugin version: 1.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Sep 14, 2023
  • Latest release: Sep 14, 2023
  • Number of updates: 2
  • Update frequency: every 0.5 days
  • Top authors: galaxyweblinks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /34 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 successfully, without throwing any errors or notices

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

Analyzing server-side resources used by Range Slider Addon for ACF
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.84 ▲1.72
Dashboard /wp-admin3.31 ▲0.0149.51 ▼1.80
Posts /wp-admin/edit.php3.36 ▲0.0148.00 ▼1.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.58 ▼19.23
Media Library /wp-admin/upload.php3.23 ▲0.0134.64 ▼1.99

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Range Slider Addon for ACF
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.47 ▲0.081.88 ▲0.1241.39 ▼1.95
Dashboard /wp-admin2,206 ▲144.84 ▼0.13105.71 ▼6.7741.55 ▼2.13
Posts /wp-admin/edit.php2,086 ▼32.01 ▼0.0533.62 ▼7.8732.97 ▼3.42
Add New Post /wp-admin/post-new.php1,542 ▲2818.17 ▲0.69625.17 ▼30.8359.89 ▲3.69
Media Library /wp-admin/upload.php1,388 ▼04.22 ▲0.0199.80 ▼0.9647.67 ▲4.45

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/range-slider-addon-for-acf/includes/stable.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'acf_field' not found in wp-content/plugins/range-slider-addon-for-acf/includes/legacy.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (ACF Range Slider Menu), #2 (Range Field)
You can look at the official readme.txt

range-slider-addon-for-acf/range-slider-addon-for-acf.php 85% from 13 tests

The main file in "Range Slider Addon for ACF" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 146 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin962 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP47834508
CSS1113301
JavaScript3239153

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity15.00
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity3.47
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods00.00%
▷ Public methods17100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
2 PNG files occupy 0.12MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png17.43KB6.15KB▼ 64.70%
screenshot-1.png106.62KB37.16KB▼ 65.15%