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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼295.10ms] Passed 4 tests
An overview of server-side resources used by Advanced Custom Fields: Archive Templates
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 54.60 ▲4.22 |
Dashboard /wp-admin | 3.44 ▲0.03 | 34.32 ▼0.58 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 37.15 ▲0.45 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 93.92 ▼1,178.95 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 22.96 ▼1.30 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Advanced Custom Fields: Archive Templates
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,784 ▲30 | 16.20 ▲0.10 | 6.07 ▼1.11 | 2.56 ▲0.00 |
Dashboard /wp-admin | 2,916 ▲62 | 6.16 ▼0.01 | 120.48 ▼18.31 | 160.49 ▲7.34 |
Posts /wp-admin/edit.php | 2,715 ▲27 | 3.25 ▲0.01 | 67.73 ▲5.09 | 141.63 ▲2.22 |
Add New Post /wp-admin/post-new.php | 1,676 ▲15 | 16.60 ▼1.78 | 431.99 ▲19.09 | 156.70 ▼0.50 |
Media Library /wp-admin/upload.php | 1,716 ▲15 | 5.48 ▼0.02 | 159.53 ▲12.16 | 187.13 ▼1.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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 your attention:
- Screenshots: Please a description for screenshot #2 in acf-archive/assets to your readme.txt
acf-archive/acf-archive.php Passed 13 tests
Analyzing the main PHP file in "Advanced Custom Fields: Archive Templates" version 1.0.6
90 characters long description:
ACF Archives is a little plugin for helping you attach ACF fields to the archive template.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected153 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 44 | 79 | 153 |
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.33 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 17.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 15 | |
▷ Static methods | 1 | 6.67% |
▷ Public methods | 10 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 33.33% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin