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.10MB] [CPU: ▼7.87ms] Passed 4 tests
Analyzing server-side resources used by Plus Features for Advanced Custom Fields
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 36.58 ▼7.37 |
Dashboard /wp-admin | 3.44 ▲0.13 | 48.37 ▼5.78 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.13 ▲0.16 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 93.65 ▼16.34 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.29 ▼1.97 |
Server storage [IO: ▲0.30MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Plus Features for Advanced Custom Fields: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,907 ▲146 | 13.39 ▼1.32 | 7.52 ▲5.82 | 41.04 ▲2.30 |
Dashboard /wp-admin | 2,208 ▲28 | 5.63 ▼0.05 | 89.27 ▼1.82 | 41.10 ▼4.43 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.14 ▲0.18 | 39.98 ▲2.47 | 36.54 ▼2.42 |
Add New Post /wp-admin/post-new.php | 1,530 ▲2 | 23.10 ▼0.16 | 618.46 ▼45.09 | 53.20 ▲2.00 |
Media Library /wp-admin/upload.php | 1,398 ▲1 | 4.17 ▼0.09 | 99.47 ▼16.56 | 43.71 ▼5.72 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/plus-features-for-advanced-custom-fields/common/partials/acfp-common-display.php
- > /wp-content/plugins/plus-features-for-advanced-custom-fields/public/partials/acfp-public-display.php
- > /wp-content/plugins/plus-features-for-advanced-custom-fields/admin/partials/acfp-admin-display.php
- 24× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-button-group.php:20
- > PHP Fatal error
Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-taxonomy.php:20
- > PHP Fatal error
Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-radio.php:20
- > PHP Fatal error
Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-post-object.php:20
- > PHP Fatal error
Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-true-false.php:20
- > PHP Fatal error
Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-text.php:20
- > PHP Fatal error
Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-select.php:20
- > PHP Fatal error
Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-textarea.php:20
- > PHP Fatal error
Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-wysiwyg.php:20
- > PHP Fatal error
Uncaught Error: Class 'ACFP_Render' not found in wp-content/plugins/plus-features-for-advanced-custom-fields/includes/renders/class-acfp-render-range.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: A description for screenshot #5 is missing in plus-features-for-advanced-custom-fields/assets to your readme.txt
- Donate link: Invalid url: ""
- License uri: Invalid url: ""
plus-features-for-advanced-custom-fields/acfp.php 85% from 13 tests
This is the main PHP file of "Plus Features for Advanced Custom Fields" version 1.3.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("plus-features-for-advanced-custom-fields.php" instead of "acfp.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected1,991 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 46 | 358 | 2,158 | 1,537 |
JavaScript | 5 | 52 | 93 | 307 |
CSS | 3 | 0 | 8 | 78 |
Sass | 1 | 14 | 1 | 69 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 5.47 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.68 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 35 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 35 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 2 | 2.06% |
▷ Public methods | 57 | 58.76% |
▷ Protected methods | 33 | 34.02% |
▷ Private methods | 7 | 7.22% |
Functions | 21 | |
▷ Named functions | 21 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
5 PNG files occupy 0.14MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 73.48KB | 38.18KB | ▼ 48.04% |
assets/screenshot-1.png | 6.90KB | 2.79KB | ▼ 59.63% |
assets/screenshot-4.png | 22.22KB | 8.69KB | ▼ 60.88% |
assets/screenshot-3.png | 8.07KB | 3.68KB | ▼ 54.48% |
assets/screenshot-2.png | 28.19KB | 11.85KB | ▼ 57.97% |