Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.02MB] [CPU: ▼294.32ms] Passed 4 tests
This is a short check of server-side resources used by ACF CSS ADD-ON
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 55.45 ▲4.95 |
Dashboard /wp-admin | 3.41 ▲0.00 | 32.14 ▼2.12 |
Posts /wp-admin/edit.php | 3.64 ▲0.00 | 36.00 ▼1.27 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 94.52 ▼1,171.75 |
Media Library /wp-admin/upload.php | 3.29 ▼0.01 | 24.92 ▼2.13 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for ACF CSS ADD-ON
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,798 ▲76 | 15.89 ▼0.14 | 5.63 ▼0.43 | 3.17 ▲0.65 |
Dashboard /wp-admin | 2,892 ▲38 | 6.21 ▲0.02 | 119.76 ▼14.22 | 156.26 ▼2.55 |
Posts /wp-admin/edit.php | 2,691 ▼0 | 3.36 ▲0.00 | 63.89 ▼1.01 | 145.12 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,711 ▲50 | 21.27 ▲4.97 | 451.00 ▲35.59 | 156.57 ▼0.80 |
Media Library /wp-admin/upload.php | 1,698 ▼0 | 5.54 ▼0.00 | 137.79 ▼2.19 | 183.41 ▼11.49 |
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
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant ACFCA_PATH - assumed 'ACFCA_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/acf-css-add-on/includes/class-acfca.php on line 3
- > PHP Fatal error
require(): Failed opening required 'ACFCA_PATHadmin/class-acfca-admin.php' (include_path='.:/usr/share/php') in wp-content/plugins/acf-css-add-on/includes/class-acfca.php on line 3
- > PHP Warning
require(ACFCA_PATHadmin/class-acfca-admin.php): failed to open stream: No such file or directory in wp-content/plugins/acf-css-add-on/includes/class-acfca.php on line 3
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Requires at least: Version format is invalid
acf-css-add-on/acfca.php 77% from 13 tests
Analyzing the main PHP file in "ACF CSS ADD-ON" version 1.0.0
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-css-add-on.php" instead of "acfca.php")
- Description: The description should be shorter than 140 characters (currently 355 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
Good job! No executable or dangerous file extensions detected471 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 109 | 345 | 357 |
CSS | 1 | 1 | 11 | 76 |
JavaScript | 1 | 8 | 4 | 38 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 7.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 27.00 |
Average method complexity | 2.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 17 | |
▷ Static methods | 2 | 11.76% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin