Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼148.97ms] Passed 4 tests
A check of server-side resources used by Advanced Custom Fields: Number Slider
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.01 | 29.21 ▲2.00 |
Dashboard /wp-admin | 3.07 ▲0.00 | 37.80 ▼3.93 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 32.05 ▼5.10 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 75.10 ▼586.65 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 26.88 ▼0.21 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 21 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Advanced Custom Fields: Number Slider
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,666 ▲39 | 15.60 ▼0.03 | 4.84 ▼0.58 | 75.32 ▲0.69 |
Dashboard /wp-admin | 2,933 ▲34 | 6.05 ▼0.13 | 113.71 ▼18.94 | 165.76 ▼9.41 |
Posts /wp-admin/edit.php | 2,737 ▼0 | 3.24 ▲0.00 | 64.26 ▲1.50 | 138.64 ▼3.87 |
Add New Post /wp-admin/post-new.php | 3,923 ▲155 | 19.41 ▲1.49 | 449.68 ▼0.49 | 160.41 ▼10.86 |
Media Library /wp-admin/upload.php | 1,749 ▼0 | 5.51 ▲0.02 | 138.04 ▼3.67 | 184.76 ▼3.31 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables
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
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× 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/advanced-custom-fields-number-slider/number-slider-v5.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/advanced-custom-fields-number-slider/acf-number-slider.php:31
- > PHP Fatal error
Uncaught Error: Class 'acf_Field' not found in wp-content/plugins/advanced-custom-fields-number-slider/number-slider-v3.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/advanced-custom-fields-number-slider/number-slider-v4.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 93% 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 to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Sliding Number Selector on edit screen), #2 (Configure Number Slider Field in ACF)
advanced-custom-fields-number-slider/acf-number-slider.php 92% from 13 tests
The main PHP script in "Advanced Custom Fields: Number Slider" version 0.5.9 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("advanced-custom-fields-number-slider.php" instead of "acf-number-slider.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin1,113 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 181 | 372 | 450 |
JavaScript | 3 | 20 | 47 | 362 |
PO File | 3 | 44 | 45 | 145 |
Markdown | 1 | 44 | 0 | 74 |
CSS | 1 | 12 | 0 | 49 |
JSON | 3 | 0 | 0 | 33 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.05 |
Average class complexity | 2.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.22 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 20.32KB | 9.22KB | ▼ 54.65% |
screenshot-1.png | 19.68KB | 9.37KB | ▼ 52.40% |