Benchmarks
Plugin footprint 83% from 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: ▲2.18MB] [CPU: ▼280.40ms] Passed 4 tests
Analyzing server-side resources used by ACC | Advanced Custom Code
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.41 ▲0.90 | 78.54 ▲13.78 |
Dashboard /wp-admin | 6.11 ▲2.71 | 51.05 ▲15.28 |
Posts /wp-admin/edit.php | 6.25 ▲2.61 | 60.00 ▲20.69 |
Add New Post /wp-admin/post-new.php | 9.46 ▲2.49 | 114.70 ▼1,171.36 |
Media Library /wp-admin/upload.php | 6.10 ▲2.80 | 57.93 ▲33.53 |
Global /wp-admin/edit.php?post_type=gpac_code&page=wpgpsc_global | 6.10 | 43.53 |
Add New /wp-admin/post-new.php?post_type=gpac_code | 6.39 | 56.01 |
Manage Code /wp-admin/edit.php?post_type=gpac_code | 6.17 | 48.16 |
Help /wp-admin/edit.php?post_type=gpac_code&page=grandplugin_help | 6.10 | 45.72 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 120 new files
Database: no new tables, 1 new option
New WordPress options |
---|
_wpgp_option_global |
Browser metrics Passed 4 tests
An overview of browser requirements for ACC | Advanced Custom Code
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,268 ▲526 | 20.04 ▲4.65 | 9.13 ▲3.34 | 2.05 ▼0.33 |
Dashboard /wp-admin | 3,262 ▲405 | 9.25 ▲3.09 | 172.41 ▲40.34 | 153.88 ▼12.50 |
Posts /wp-admin/edit.php | 3,324 ▲633 | 7.16 ▲3.92 | 96.04 ▲30.93 | 151.46 ▲2.69 |
Add New Post /wp-admin/post-new.php | 1,945 ▲284 | 17.91 ▲2.39 | 433.44 ▼11.54 | 187.79 ▼9.54 |
Media Library /wp-admin/upload.php | 2,118 ▲429 | 7.89 ▲2.37 | 131.11 ▼20.16 | 197.68 ▼40.79 |
Global /wp-admin/edit.php?post_type=gpac_code&page=wpgpsc_global | 5,114 | 7.45 | 134.84 | 124.74 |
Add New /wp-admin/post-new.php?post_type=gpac_code | 3,329 | 10.53 | 194.17 | 377.67 |
Manage Code /wp-admin/edit.php?post_type=gpac_code | 2,002 | 7.17 | 92.60 | 117.06 |
Help /wp-admin/edit.php?post_type=gpac_code&page=grandplugin_help | 1,861 | 6.88 | 88.67 | 214.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- _wpgp_option_global
Smoke tests 75% 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 50% from 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
Please fix the following items
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acc-conditional-typo/public/partials/acc-conditional-typo-public-display.php on line 37
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acc-conditional-typo/public/partials/acc-conditional-typo-public-display.php on line 31
- > PHP Notice
Undefined variable: acc_value in wp-content/plugins/acc-conditional-typo/public/partials/acc-conditional-typo-public-display.php on line 37
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acc-conditional-typo/public/partials/acc-conditional-typo-public-display.php on line 37
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/acc-conditional-typo/public/partials/acc-conditional-typo-public-display.php on line 113
- > PHP Warning
array_filter() expects parameter 1 to be array, null given in wp-content/plugins/acc-conditional-typo/public/partials/acc-conditional-typo-public-display.php on line 40
- > PHP Warning
array_column() expects parameter 1 to be array, null given in wp-content/plugins/acc-conditional-typo/public/partials/acc-conditional-typo-public-display.php on line 37
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/acc-conditional-typo/admin/partials/acc-conditional-typo-admin-display.php:18
- > PHP Notice
Undefined variable: acc_value in wp-content/plugins/acc-conditional-typo/public/partials/acc-conditional-typo-public-display.php on line 113
- > PHP Notice
Undefined variable: acc_value in wp-content/plugins/acc-conditional-typo/public/partials/acc-conditional-typo-public-display.php on line 31
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
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 to be fixed:
- Requires at least: The plugin version is formatted incorrectly
acc-conditional-typo/acc-conditional-typo.php Passed 13 tests
This is the main PHP file of "ACC | Advanced Custom Code" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
118 characters long description:
Add custom code like HTML, CSS, JavaScript, PHP with a versatile code editor implemented in individual posts or pages.
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
No dangerous file extensions were detected15,551 lines of code in 102 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 86 | 2,437 | 1,720 | 7,322 |
CSS | 6 | 346 | 483 | 4,253 |
JavaScript | 7 | 1,194 | 397 | 3,831 |
PO File | 1 | 63 | 71 | 143 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 21.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 6.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 52.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 65 | |
▷ Abstract classes | 2 | 3.08% |
▷ Concrete classes | 63 | 96.92% |
▷ Final classes | 0 | 0.00% |
Methods | 259 | |
▷ Static methods | 37 | 14.29% |
▷ Public methods | 252 | 97.30% |
▷ Protected methods | 1 | 0.39% |
▷ Private methods | 6 | 2.32% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 3 | 75.00% |
▷ Class constants | 1 | 25.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.09MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/img/icon-128x128.png | 4.05KB | 1.88KB | ▼ 53.54% |
admin/wpgp-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |
admin/img/youtube-video-id.png | 20.48KB | 19.97KB | ▼ 2.49% |
admin/img/advanced-custom-code-logo.png | 22.18KB | 3.71KB | ▼ 83.26% |
admin/img/get-api-key.png | 44.92KB | 22.32KB | ▼ 50.30% |