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: ▲0.07MB] [CPU: ▼4.17ms] Passed 4 tests
Analyzing server-side resources used by Broadcast - WordPress Call to Actions
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 37.69 ▼3.48 |
Dashboard /wp-admin | 3.38 ▲0.08 | 45.75 ▼2.13 |
Posts /wp-admin/edit.php | 3.49 ▲0.14 | 44.62 ▼1.41 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 86.06 ▼9.66 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 35.44 ▼0.96 |
Help /wp-admin/edit.php?post_type=broadcast&page=help | 3.32 | 32.12 |
Add New /wp-admin/post-new.php?post_type=broadcast | 3.41 | 46.39 |
Call to Actions /wp-admin/edit.php?post_type=broadcast | 3.34 | 36.31 |
Dashboard /wp-admin/edit.php?post_type=broadcast&page=dashboard | 3.33 | 33.25 |
Layouts /wp-admin/edit.php?post_type=broadcast&page=layouts | 3.34 | 30.74 |
Server storage [IO: ▲0.93MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 100 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Broadcast - WordPress Call to Actions
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,848 ▲77 | 13.27 ▼1.12 | 4.15 ▲2.16 | 41.43 ▲0.76 |
Dashboard /wp-admin | 2,252 ▲67 | 4.87 ▼0.94 | 107.00 ▲9.67 | 36.03 ▼7.67 |
Posts /wp-admin/edit.php | 2,135 ▲46 | 2.04 ▼0.05 | 41.39 ▲0.73 | 31.71 ▼3.70 |
Add New Post /wp-admin/post-new.php | 1,563 ▲28 | 23.28 ▼0.09 | 633.07 ▼25.77 | 53.25 ▼1.14 |
Media Library /wp-admin/upload.php | 1,428 ▲43 | 4.19 ▼0.01 | 92.64 ▼12.25 | 39.34 ▼4.89 |
Help /wp-admin/edit.php?post_type=broadcast&page=help | 1,112 | 1.92 | 25.56 | 63.94 |
Add New /wp-admin/post-new.php?post_type=broadcast | 2,283 | 7.73 | 168.00 | 83.23 |
Call to Actions /wp-admin/edit.php?post_type=broadcast | 1,146 | 1.94 | 32.35 | 35.28 |
Dashboard /wp-admin/edit.php?post_type=broadcast&page=dashboard | 1,323 | 2.20 | 37.15 | 54.77 |
Layouts /wp-admin/edit.php?post_type=broadcast&page=layouts | 1,248 | 2.28 | 35.21 | 37.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/broadcast-call-to-actions/admin/includes/layout-list-template.php
- 24× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/broadcast-call-to-actions/admin/includes/cta/about.php:2
- > PHP Notice
Undefined variable: layout in wp-content/plugins/broadcast-call-to-actions/admin/includes/layout-list-template.php on line 4
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/broadcast-call-to-actions/admin/includes/layout-list-template.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/broadcast-call-to-actions/admin/includes/cta/plugins.php:2
- > PHP Warning
Use of undefined constant BROADCAST_TITLE - assumed 'BROADCAST_TITLE' (this will throw an Error in a future version of PHP) in wp-content/plugins/broadcast-call-to-actions/admin/views/addons.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function includes_url() in wp-content/plugins/broadcast-call-to-actions/admin/editor/editor-build.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/broadcast-call-to-actions/admin/views/addons.php:5
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/broadcast-call-to-actions/admin/includes/layout-list-template.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/broadcast-call-to-actions/admin/includes/cta/functions.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/broadcast-call-to-actions/admin/views/layouts.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: announcement, action, broadcast, callout, cta...
broadcast-call-to-actions/broadcast.php 92% from 13 tests
The principal PHP file in "Broadcast - WordPress Call to Actions" v. 1.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("broadcast-call-to-actions.php" instead of "broadcast.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin15,528 lines of code in 76 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 25 | 1,165 | 1,130 | 9,891 |
CSS | 11 | 162 | 96 | 2,471 |
HTML | 12 | 225 | 1 | 1,693 |
PHP | 28 | 367 | 340 | 1,473 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 9.33 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 3.27 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 2 | 18.18% |
▷ Public methods | 10 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 9.09% |
Functions | 42 | |
▷ Named functions | 42 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
19 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/img/bkg-radio_off.png | 1.33KB | 0.49KB | ▼ 63.47% |
admin/assets/img/help/broadcast-help-2.png | 49.43KB | 51.22KB | 0.00% |
admin/assets/img/bkg-select.png | 1.06KB | 0.18KB | ▼ 83.09% |
admin/assets/img/logos/post-explorer-48x48.png | 2.06KB | 0.94KB | ▼ 54.49% |
admin/assets/img/bkg-chkbox_selected.png | 1.26KB | 0.32KB | ▼ 74.55% |