Benchmarks
Plugin footprint 23% 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/double-click/src/DoubleClick/WPDoubleClick.php+39
Function create_function() is deprecated
Server metrics [RAM: ▼1.84MB] [CPU: ▼51.80ms] Passed 4 tests
Analyzing server-side resources used by Double Click
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼1.33 | 8.73 ▼37.03 |
Dashboard /wp-admin | 2.17 ▼1.13 | 11.26 ▼41.98 |
Posts /wp-admin/edit.php | 2.17 ▼1.18 | 8.99 ▼43.00 |
Add New Post /wp-admin/post-new.php | 2.17 ▼3.71 | 10.74 ▼85.19 |
Media Library /wp-admin/upload.php | 2.17 ▼1.05 | 10.38 ▼23.43 |
Double Click /wp-admin/options-general.php?page=DoubleClick | 2.17 | 9.98 |
Server storage [IO: ▲9.97MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2,688 new files
Database: 4 new tables, 7 new options
New tables |
---|
wp_dfp_slots |
wp_dfp_ad_block |
wp_dfp_slots_taxonomy |
wp_dfp_sizes |
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_double-click |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Double Click
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲86 | 15.82 ▲1.38 | 15.63 ▲12.90 | 43.02 ▼1.92 |
Dashboard /wp-admin | 2,214 ▲23 | 4.85 ▼0.10 | 114.52 ▲4.14 | 44.26 ▲3.47 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.02 ▼0.03 | 36.12 ▼1.92 | 34.66 ▲0.74 |
Add New Post /wp-admin/post-new.php | 1,521 ▲2 | 23.11 ▼0.02 | 673.30 ▼18.68 | 54.81 ▼3.75 |
Media Library /wp-admin/upload.php | 1,399 ▲11 | 4.22 ▲0.02 | 106.31 ▼0.21 | 48.06 ▲3.31 |
Double Click /wp-admin/options-general.php?page=DoubleClick | 802 | 2.03 | 27.77 | 29.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the DoubleClickAdmin handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie tables detected upon uninstall: 4 tables
- wp_dfp_sizes
- wp_dfp_slots_taxonomy
- wp_dfp_slots
- wp_dfp_ad_block
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_double-click
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=DoubleClick
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the DoubleClickAdmin handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=DoubleClick
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the DoubleClick handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/options-general.php?page=DoubleClick
- > Deprecated in wp-content/plugins/double-click/src/DoubleClick/WPDoubleClick.php+39
Function create_function() is deprecated
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 take a closer look at the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/double-click/vendor/bin/classmap_generator.php
- > /wp-content/plugins/double-click/vendor/bin/pluginmap_generator.php
- > /wp-content/plugins/double-click/vendor/bin/templatemap_generator.php
- 1684× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Zend\\Validator\\ValidatorInterface' not found in wp-content/plugins/double-click/vendor/zendframework/zendframework/library/Zend/Captcha/AdapterInterface.php:19
- > PHP Fatal error
Uncaught Error: Class 'Zend\\Code\\Generator\\DocBlock\\Tag\\AbstractTypeableTag' not found in wp-content/plugins/double-click/vendor/zendframework/zendframework/library/Zend/Code/Generator/DocBlock/Tag/ParamTag.php:15
- > PHP Fatal error
Uncaught Error: Interface 'Zend\\Http\\Client\\Exception\\ExceptionInterface' not found in wp-content/plugins/double-click/vendor/zendframework/zendframework/library/Zend/Http/Client/Adapter/Exception/ExceptionInterface.php:14
- > PHP Fatal error
Uncaught Error: Class 'Zend\\XmlRpc\\Value\\AbstractScalar' not found in wp-content/plugins/double-click/vendor/zendframework/zendframework/library/Zend/XmlRpc/Value/Base64.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Zend\\Server\\Exception\\ExceptionInterface' not found in wp-content/plugins/double-click/vendor/zendframework/zendframework/library/Zend/Server/Exception/InvalidArgumentException.php:12
- > PHP Fatal error
Uncaught Error: Class 'Zend\\EventManager\\Event' not found in wp-content/plugins/double-click/vendor/zendframework/zendframework/library/Zend/Cache/Storage/Event.php:15
- > PHP Fatal error
Uncaught Error: Class 'Zend\\Db\\Adapter\\Exception\\RuntimeException' not found in wp-content/plugins/double-click/vendor/zendframework/zendframework/library/Zend/Db/Adapter/Exception/InvalidConnectionParametersException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Zend\\Code\\Exception\\ExceptionInterface' not found in wp-content/plugins/double-click/vendor/zendframework/zendframework/library/Zend/Code/Exception/InvalidArgumentException.php:12
- > PHP Fatal error
Uncaught Error: Interface 'Zend\\Db\\Adapter\\AdapterInterface' not found in wp-content/plugins/double-click/vendor/zendframework/zendframework/library/Zend/Db/Adapter/Adapter.php:18
- > PHP Fatal error
Uncaught Error: Class 'Zend\\Session\\AbstractContainer' not found in wp-content/plugins/double-click/vendor/zendframework/zendframework/library/Zend/Session/Container.php:20
- > 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 issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: dfp, double click, doubleclick
double-click/double-click-plugin.php 92% from 13 tests
The primary PHP file in "Double Click" version 1.1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("double-click.php" instead of "double-click-plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin171,292 lines of code in 2,628 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2,506 | 35,676 | 115,899 | 164,470 |
Markdown | 58 | 544 | 0 | 4,439 |
JSON | 55 | 4 | 0 | 2,086 |
JavaScript | 3 | 1 | 0 | 198 |
Bourne Shell | 2 | 20 | 11 | 50 |
XML | 1 | 5 | 0 | 22 |
YAML | 2 | 3 | 0 | 15 |
CSS | 1 | 0 | 0 | 12 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 10.34 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 202.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 81.00 |
Code structure | ||
---|---|---|
Namespaces | 395 | |
Interfaces | 341 | |
Traits | 16 | |
Classes | 1,827 | |
▷ Abstract classes | 141 | 7.72% |
▷ Concrete classes | 1,686 | 92.28% |
▷ Final classes | 19 | 1.13% |
Methods | 12,400 | |
▷ Static methods | 638 | 5.15% |
▷ Public methods | 10,651 | 85.90% |
▷ Protected methods | 1,672 | 13.48% |
▷ Private methods | 77 | 0.62% |
Functions | 178 | |
▷ Named functions | 4 | 2.25% |
▷ Anonymous functions | 174 | 97.75% |
Constants | 1,274 | |
▷ Global constants | 4 | 0.31% |
▷ Class constants | 1,270 | 99.69% |
▷ Public constants | 1,270 | 100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/zendframework/zendframework/resources/ZendFramework-logo.png | 36.66KB | 16.86KB | ▼ 54.00% |