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
Installer ran successfully
Server metrics [RAM: ▼0.37MB] [CPU: ▼272.73ms] Passed 4 tests
A check of server-side resources used by Divi Advanced Custom Types
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.03 | 54.38 ▲4.83 |
Dashboard /wp-admin | 3.22 ▼0.18 | 19.96 ▼13.38 |
Posts /wp-admin/edit.php | 3.28 ▼0.36 | 21.16 ▼14.86 |
Add New Post /wp-admin/post-new.php | 6.10 ▼0.87 | 203.26 ▼1,052.61 |
Media Library /wp-admin/upload.php | 3.25 ▼0.05 | 19.27 ▼10.06 |
Server storage [IO: ▲0.73MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Divi Advanced Custom Types
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,822 ▲78 | 15.92 ▲0.29 | 7.26 ▲1.46 | 2.49 ▲0.31 |
Dashboard /wp-admin | 2,915 ▲57 | 6.23 ▲0.08 | 115.67 ▼14.45 | 181.80 ▲14.72 |
Posts /wp-admin/edit.php | 2,715 ▲24 | 2.98 ▼0.26 | 67.86 ▲3.68 | 142.94 ▼0.87 |
Add New Post /wp-admin/post-new.php | 1,709 ▼43 | 21.08 ▲0.05 | 469.06 ▲13.75 | 182.84 ▲23.12 |
Media Library /wp-admin/upload.php | 1,719 ▲21 | 5.51 ▲0.03 | 148.78 ▲5.35 | 225.36 ▲37.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
Please fix the following items
- 4× PHP files output text when accessed directly:
- > /wp-content/plugins/advanced-custom-types-for-divi/trunk/public/partials/act-divi-public-display.php
- > /wp-content/plugins/advanced-custom-types-for-divi/admin/partials/act-divi-admin-display.php
- > /wp-content/plugins/advanced-custom-types-for-divi/public/partials/act-divi-public-display.php
- > /wp-content/plugins/advanced-custom-types-for-divi/trunk/admin/partials/act-divi-admin-display.php
- 23× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advanced-custom-types-for-divi/trunk/includes/modules/ACTPostTypeGrid/layouts/cards.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/advanced-custom-types-for-divi/trunk/includes/modules/ACTPostTypeGrid/ACTPostTypeGrid.php:3
- > PHP Notice
Undefined variable: props in wp-content/plugins/advanced-custom-types-for-divi/includes/modules/ACTPostTypeGrid/layouts/cards.php on line 17
- > PHP Notice
Undefined variable: posts in wp-content/plugins/advanced-custom-types-for-divi/trunk/includes/modules/ACTPostTypeGrid/layouts/cards.php on line 50
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/advanced-custom-types-for-divi/includes/modules/ACTPostTypeGrid/layouts/ACTPostFullWidth.php:3
- > PHP Notice
Undefined variable: props in wp-content/plugins/advanced-custom-types-for-divi/trunk/includes/modules/ACTPostTypeGrid/layouts/cards.php on line 17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advanced-custom-types-for-divi/trunk/includes/modules/ACTPostTypeGrid/layouts/cards.php on line 17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/advanced-custom-types-for-divi/trunk/includes/modules/ACTPostTypeGrid/layouts/cards.php on line 17
- > PHP Notice
Undefined variable: posts in wp-content/plugins/advanced-custom-types-for-divi/includes/modules/ACTPostTypeGrid/layouts/cards.php on line 50
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/advanced-custom-types-for-divi/includes/modules/ACTPostTypeGrid/layouts/cards.php:50
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #6 in advanced-custom-types-for-divi/assets to your readme.txt
- Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
advanced-custom-types-for-divi/advanced-custom-types-divi.php 85% from 13 tests
The entry point to "Divi Advanced Custom Types" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: The principal plugin file should be the same as the plugin slug ("advanced-custom-types-for-divi.php" instead of "advanced-custom-types-divi.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,062 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 513 | 1,005 | 2,187 |
Markdown | 1 | 212 | 0 | 453 |
PO File | 2 | 182 | 224 | 416 |
CSS | 2 | 0 | 10 | 4 |
JavaScript | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 10.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 41.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 32.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 1 | 4.35% |
▷ Concrete classes | 22 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 120 | |
▷ Static methods | 19 | 15.83% |
▷ Public methods | 108 | 90.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 10.00% |
Functions | 16 | |
▷ Named functions | 12 | 75.00% |
▷ Anonymous functions | 4 | 25.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/Icon-30x30.png | 4.13KB | 0.63KB | ▼ 84.62% |