Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼294.78ms] Passed 4 tests
A check of server-side resources used by ACF: Star Rating Field
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 54.46 ▲3.01 |
Dashboard /wp-admin | 3.43 ▲0.02 | 31.79 ▼1.00 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 35.92 ▲0.72 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.07 | 90.17 ▼1,180.41 |
Media Library /wp-admin/upload.php | 3.30 ▲0.01 | 25.51 ▲1.56 |
Server storage [IO: ▲0.14MB] [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: 17 new files
Database: 1 new table, no new options
New tables |
---|
wp_acfsrf |
Browser metrics Passed 4 tests
ACF: Star Rating Field: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,904 ▲150 | 16.27 ▲0.25 | 9.39 ▲3.71 | 2.18 ▼0.50 |
Dashboard /wp-admin | 2,899 ▲45 | 6.27 ▲0.12 | 115.40 ▼14.44 | 155.20 ▼1.17 |
Posts /wp-admin/edit.php | 2,695 ▲4 | 3.37 ▲0.02 | 63.55 ▼0.72 | 147.68 ▲7.85 |
Add New Post /wp-admin/post-new.php | 1,767 ▲106 | 22.77 ▲7.24 | 403.70 ▼1.13 | 159.89 ▲4.81 |
Media Library /wp-admin/upload.php | 1,705 ▲10 | 5.57 ▲0.03 | 142.51 ▼1.98 | 188.95 ▲3.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
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 | 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
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/acf-starrating/acf-starrating.php:40
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-starrating/acf-starrating-v4.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-starrating/functions.php:98
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 ("Star rating" field appearance.), #2 (Field settings in ACF.), #3 (Field settings in ACF.)
acf-starrating/acf-starrating.php 92% from 13 tests
"ACF: Star Rating Field" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin875 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 242 | 278 | 483 |
JavaScript | 1 | 62 | 7 | 194 |
PO File | 2 | 53 | 62 | 138 |
CSS | 1 | 7 | 0 | 32 |
Markdown | 1 | 15 | 0 | 28 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 10.22KB | 4.01KB | ▼ 60.73% |
images/stars.png | 4.33KB | 2.47KB | ▼ 43.00% |
screenshot-3.png | 20.00KB | 8.87KB | ▼ 55.67% |
screenshot-2.png | 55.28KB | 20.58KB | ▼ 62.77% |