Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼1.58MB] [CPU: ▼60.08ms] Passed 4 tests
An overview of server-side resources used by WP2Act
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.42 ▼1.04 | 5.91 ▼38.00 |
Dashboard /wp-admin | 2.44 ▼0.90 | 7.42 ▼56.97 |
Posts /wp-admin/edit.php | 2.44 ▼0.91 | 7.78 ▼44.81 |
Add New Post /wp-admin/post-new.php | 2.44 ▼3.44 | 7.19 ▼100.55 |
Media Library /wp-admin/upload.php | 2.44 ▼0.79 | 7.18 ▼29.99 |
Show Pages /wp-admin/admin.php?page=show_page_menu | 2.44 | 7.39 |
WP2Act Setting /wp-admin/admin.php?page=wp2act_setting | 2.44 | 8.05 |
Link Title /wp-admin/admin.php?page=link_title_menu | 2.44 | 6.72 |
Server storage [IO: ▲0.47MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
WP2Act: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲167 | 14.13 ▼0.22 | 7.71 ▲5.77 | 43.25 ▲0.16 |
Dashboard /wp-admin | 2,254 ▲69 | 5.17 ▼0.71 | 101.64 ▼11.27 | 84.70 ▲32.26 |
Posts /wp-admin/edit.php | 2,131 ▲39 | 2.26 ▲0.11 | 42.64 ▲1.02 | 37.59 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,551 ▲17 | 17.46 ▼5.68 | 756.05 ▲105.75 | 39.23 ▼22.06 |
Media Library /wp-admin/upload.php | 1,431 ▲43 | 4.58 ▲0.37 | 99.09 ▼7.06 | 80.14 ▲36.24 |
Show Pages /wp-admin/admin.php?page=show_page_menu | 876 | 1.91 | 24.95 | 31.98 |
WP2Act Setting /wp-admin/admin.php?page=wp2act_setting | 890 | 1.81 | 26.67 | 27.36 |
Link Title /wp-admin/admin.php?page=link_title_menu | 831 | 1.93 | 27.67 | 26.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure validation failed for this plugin
- > 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 bootstrap-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=link_title_menu
- > 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 bootstrap-js handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=link_title_menu
- > 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 crm_manager handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 12 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=link_title_menu
- > Notice in wp-content/plugins/wp2act/CRMAddon-Teaser.php+651
Trying to access array offset on value of type bool
SRP 0% from 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp2act/CRMAddon-Teaser.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp2act/frontend-form.php:8
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 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
4 plugin tags: crmaddon-contact, wp2act, act, contact-information
wp2act/CRMAddon-Teaser.php 85% from 13 tests
Analyzing the main PHP file in "WP2Act" version 1.3
The following require your attention:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Main file name: Name the main plugin file the same as the plugin slug ("wp2act.php" instead of "CRMAddon-Teaser.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected2,005 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 151 | 142 | 1,067 |
CSS | 2 | 54 | 6 | 296 |
SVG | 1 | 0 | 0 | 288 |
PO File | 3 | 108 | 114 | 270 |
JavaScript | 2 | 18 | 8 | 84 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 173.00 |
▷ Minimum class complexity | 173.00 |
▷ Maximum class complexity | 173.00 |
Average method complexity | 6.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 72.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 | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 78.79% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 21.21% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/contact_data.png | 5.95KB | 2.30KB | ▼ 61.30% |
images/icon.png | 1.44KB | 0.71KB | ▼ 51.12% |