Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼1.99ms] Passed 4 tests
This is a short check of server-side resources used by Advanced Custom Fields: Price Field
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.09 ▼2.26 |
Dashboard /wp-admin | 3.32 ▲0.02 | 53.01 ▲0.34 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 56.07 ▲0.42 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 98.50 ▼6.47 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 42.18 ▲4.39 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Custom Fields: Price Field
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.75 ▲0.36 | 1.83 ▼0.12 | 45.01 ▲0.33 |
Dashboard /wp-admin | 2,192 ▲12 | 5.52 ▼0.14 | 91.51 ▲2.97 | 39.76 ▼0.18 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.99 ▼0.01 | 35.67 ▼1.34 | 31.66 ▼6.71 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.13 ▲1.10 | 622.96 ▼82.27 | 66.11 ▲15.73 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.19 ▼0.04 | 96.23 ▼4.56 | 41.63 ▼3.01 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, 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
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/acf-price/fields/acf-price-common.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_price_common' not found in wp-content/plugins/acf-price/fields/acf-price-v5.php:3
- > PHP Fatal error
Uncaught Error: Class 'acf_price_common' not found in wp-content/plugins/acf-price/fields/acf-price-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
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
3 plugin tags: acf, advanced custom fields, price
acf-price/acf-price.php Passed 13 tests
The main PHP script in "Advanced Custom Fields: Price Field" version 1.2.1 is automatically included on every request by WordPress
35 characters long description:
ACF Price field with number format.
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 plugin261 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 31 | 14 | 156 |
PO File | 2 | 16 | 16 | 61 |
JavaScript | 3 | 4 | 1 | 23 |
JSON | 1 | 0 | 0 | 21 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.10 |
Average class complexity | 1.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 1 | 25.00% |
▷ Concrete classes | 3 | 75.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin