Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/dynamic-cta/dynamic-ctas.php+199
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▲0.04MB] [CPU: ▼1.61ms] Passed 4 tests
Server-side resources used by Dynamic CTA
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 38.52 ▼2.04 |
Dashboard /wp-admin | 3.34 ▲0.04 | 49.13 ▲1.12 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 49.73 ▼1.34 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 96.42 ▼4.19 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.59 ▲4.12 |
All CTA /wp-admin/admin.php?page=dynamic_cta_page | 3.29 | 32.57 |
New CTA /wp-admin/post-new.php?post_type=dynamic_cta_type | 3.41 | 54.67 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_ea_dynamicctas_widget |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Dynamic CTA: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲50 | 14.28 ▼0.07 | 1.58 ▼0.09 | 45.15 ▲3.64 |
Dashboard /wp-admin | 2,205 ▲25 | 5.58 ▼0.07 | 89.37 ▼4.03 | 80.88 ▲39.99 |
Posts /wp-admin/edit.php | 2,122 ▲19 | 1.97 ▲0.02 | 35.31 ▼1.17 | 38.12 ▼2.92 |
Add New Post /wp-admin/post-new.php | 1,561 ▲31 | 23.20 ▲0.07 | 656.92 ▼7.57 | 53.94 ▼5.96 |
Media Library /wp-admin/upload.php | 1,419 ▲16 | 4.22 ▼0.04 | 97.83 ▼2.15 | 63.41 ▲19.54 |
All CTA /wp-admin/admin.php?page=dynamic_cta_page | 849 | 2.17 | 24.22 | 25.71 |
New CTA /wp-admin/post-new.php?post_type=dynamic_cta_type | 2,216 | 7.67 | 163.71 | 131.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin cannot be uninstalled
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=dynamic_cta_page
- > Notice in wp-content/plugins/dynamic-cta/dynamic_ctas_admin.php+4
Undefined index: order
- > GET request to /wp-admin/admin.php?page=dynamic_cta_page
- > Notice in wp-content/plugins/dynamic-cta/dynamic_ctas_admin.php+5
Undefined index: orderby
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
No output text or server-side errors detected on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line (
=== dynamic-cta ===
)
dynamic-cta/dynamic-ctas.php 77% from 13 tests
The principal PHP file in "Dynamic CTA" v. 1.0.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: Name the main plugin file the same as the plugin slug ("dynamic-cta.php" instead of "dynamic-ctas.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 168 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected381 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 39 | 44 | 305 |
PO File | 1 | 17 | 18 | 72 |
JavaScript | 1 | 0 | 3 | 4 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
image/logoDynamicCTA-Full.png | 14.50KB | 7.70KB | ▼ 46.94% |
image/logoDynamicCTA.png | 1.39KB | 1.37KB | ▼ 1.40% |