Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.23ms] Passed 4 tests
Server-side resources used by ACF: Star Rating Field
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 44.18 ▼2.19 |
Dashboard /wp-admin | 3.32 ▲0.02 | 49.60 ▼4.52 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 50.53 ▲3.59 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 103.36 ▲7.86 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 38.88 ▼1.80 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_acfsrf |
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for ACF: Star Rating Field
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,882 ▲121 | 13.38 ▼0.97 | 8.88 ▲7.20 | 43.71 ▼2.95 |
Dashboard /wp-admin | 2,202 ▲25 | 5.64 ▼0.01 | 95.61 ▼4.29 | 40.65 ▼4.87 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.03 ▲0.02 | 38.13 ▲0.38 | 35.71 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,544 ▲18 | 17.88 ▼5.81 | 646.62 ▼39.35 | 66.44 ▲5.09 |
Media Library /wp-admin/upload.php | 1,407 ▲10 | 4.20 ▼0.04 | 100.24 ▼11.37 | 47.83 ▼0.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
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 no errors were found, this is by no means 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
Please fix the following
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/acf-starrating/functions.php:98
- > 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
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% 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
These attributes need to be fixed:
- Screenshots: Please add images for these screenshots: #1 ("Star rating" field appearance.), #2 (Field settings in ACF.), #3 (Field settings in ACF.)
acf-starrating/acf-starrating.php 92% from 13 tests
The main file in "ACF: Star Rating Field" v. 1.0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 148 characters long)
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 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
Great job! No cyclomatic complexity issues were detected in this plugin
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-2.png | 55.28KB | 20.58KB | ▼ 62.77% |
screenshot-3.png | 20.00KB | 8.87KB | ▼ 55.67% |