Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼292.25ms] Passed 4 tests
Server-side resources used by Advanced Custom Fields : CPT Options Pages
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 54.30 ▲6.17 |
Dashboard /wp-admin | 3.41 ▲0.01 | 32.50 ▼0.54 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 36.87 ▼0.87 |
Add New Post /wp-admin/post-new.php | 6.89 ▼0.08 | 94.75 ▼1,161.33 |
Media Library /wp-admin/upload.php | 3.30 ▼0.00 | 23.32 ▼6.26 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Custom Fields : CPT Options Pages: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,801 ▲47 | 15.83 ▲0.08 | 5.34 ▼1.18 | 2.33 ▼0.67 |
Dashboard /wp-admin | 2,901 ▲40 | 6.16 ▲0.06 | 116.25 ▼15.69 | 157.84 ▼3.33 |
Posts /wp-admin/edit.php | 2,697 ▲3 | 3.24 ▼0.00 | 63.56 ▲3.33 | 137.41 ▲1.64 |
Add New Post /wp-admin/post-new.php | 1,665 ▼46 | 16.51 ▼4.20 | 422.20 ▼16.91 | 151.26 ▼5.97 |
Media Library /wp-admin/upload.php | 1,704 ▲6 | 5.49 ▲0.01 | 137.04 ▼3.46 | 179.72 ▼11.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/acf-cpt-options-pages/cpt-acf.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'ACFCPT_OptionsPages' not found in wp-content/plugins/acf-cpt-options-pages/tpl-settings-page.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
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== acf-cpt-options-pages ===
)
acf-cpt-options-pages/cpt-acf.php 92% from 13 tests
The principal PHP file in "Advanced Custom Fields : CPT Options Pages" v. 2.0.8 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("acf-cpt-options-pages.php" instead of "cpt-acf.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin363 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 36 | 28 | 185 |
PO File | 3 | 30 | 36 | 114 |
JavaScript | 1 | 6 | 0 | 46 |
JSON | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.90 |
▷ 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 | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 3 | |
▷ Global constants | 3 | 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
There are no PNG files in this plugin