Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
These installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/flexible-genesis-cta/flexible-cta.php+24
Function create_function() is deprecated
Server metrics [RAM: ▼2.47MB] [CPU: ▼343.95ms] Passed 4 tests
A check of server-side resources used by Flexible Genesis CTA
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.90 ▼1.61 | 4.38 ▼52.43 |
Dashboard /wp-admin | 1.92 ▼1.49 | 3.74 ▼29.34 |
Posts /wp-admin/edit.php | 1.92 ▼1.72 | 4.01 ▼31.51 |
Add New Post /wp-admin/post-new.php | 1.92 ▼5.05 | 3.83 ▼1,262.52 |
Media Library /wp-admin/upload.php | 1.92 ▼1.38 | 3.78 ▼22.08 |
Install Plugins /wp-admin/themes.php?page=install-required-plugins | 1.93 | 4.06 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_lp-cta |
Browser metrics Passed 4 tests
An overview of browser requirements for Flexible Genesis CTA
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,834 ▲80 | 16.46 ▲1.10 | 5.53 ▼1.31 | 2.18 ▼0.77 |
Dashboard /wp-admin | 2,963 ▲109 | 6.81 ▲0.61 | 116.54 ▼19.88 | 167.54 ▲5.81 |
Posts /wp-admin/edit.php | 2,772 ▲78 | 3.21 ▼0.03 | 71.45 ▲10.48 | 176.12 ▲33.74 |
Add New Post /wp-admin/post-new.php | 1,744 ▲58 | 18.38 ▼1.19 | 397.07 ▼16.04 | 157.95 ▲1.00 |
Media Library /wp-admin/upload.php | 1,776 ▲75 | 5.91 ▲0.41 | 139.57 ▼5.93 | 202.19 ▲11.81 |
Install Plugins /wp-admin/themes.php?page=install-required-plugins | 1,227 | 2.93 | 57.01 | 108.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/flexible-genesis-cta/flexible-cta.php+24
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_lp-cta
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/themes.php?page=install-required-plugins
- > Deprecated in wp-content/plugins/flexible-genesis-cta/flexible-cta.php+24
Function create_function() is deprecated
- 7 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=install-required-plugins
- > Warning in wp-content/plugins/flexible-genesis-cta/inc/plugins/plugins.php+82
Use of undefined constant CHILD_DOMAIN - assumed 'CHILD_DOMAIN' (this will throw an Error in a future version of PHP)
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/flexible-genesis-cta/views/widget.php
- > /wp-content/plugins/flexible-genesis-cta/inc/plugins/plugins.php
- 40× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: title in wp-content/plugins/flexible-genesis-cta/views/widget.php on line 114
- > PHP Notice
Undefined variable: img_alt in wp-content/plugins/flexible-genesis-cta/views/widget.php on line 106
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/flexible-genesis-cta/views/widget.php on line 89
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/flexible-genesis-cta/views/widget.php on line 82
- > PHP Notice
Undefined variable: bg_col in wp-content/plugins/flexible-genesis-cta/views/widget.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/flexible-genesis-cta/views/widget.php on line 94
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/flexible-genesis-cta/views/widget.php on line 96
- > PHP Notice
Undefined variable: button_text in wp-content/plugins/flexible-genesis-cta/views/widget.php on line 118
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/flexible-genesis-cta/views/widget.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/flexible-genesis-cta/views/widget.php on line 5
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: Please add at least on tag
flexible-genesis-cta/flexible-cta.php 92% from 13 tests
The main file in "Flexible Genesis CTA" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("flexible-genesis-cta.php" instead of "flexible-cta.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
Good job! No executable or dangerous file extensions detected1,505 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 453 | 917 | 1,379 |
CSS | 4 | 6 | 1 | 88 |
JavaScript | 2 | 4 | 0 | 38 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 43.60 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 116.00 |
Average method complexity | 5.35 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 40.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 1 | 2.04% |
▷ Public methods | 43 | 87.76% |
▷ Protected methods | 6 | 12.24% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
views/img/image-placement-bottom.png | 3.49KB | 0.33KB | ▼ 90.60% |
views/img/content-button.png | 3.45KB | 0.34KB | ▼ 90.23% |
views/img/image-content-button.png | 3.92KB | 0.46KB | ▼ 88.24% |
views/img/image-placement-middle.png | 3.50KB | 0.35KB | ▼ 89.88% |
views/img/image-placement-top.png | 3.25KB | 0.30KB | ▼ 90.82% |