Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▲0.16ms] Passed 4 tests
Server-side resources used by GatewayAPI
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 47.65 ▲5.12 |
Dashboard /wp-admin | 3.56 ▲0.25 | 56.69 ▲1.64 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 52.71 ▲1.58 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 95.79 ▼7.69 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 43.00 ▲7.28 |
GatewayAPI Settings /wp-admin/options-general.php?page=gatewayapi | 3.73 | 41.00 |
Server storage [IO: ▲1.26MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 130 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_oc_recipients_import |
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
gatewayapi_db_version |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
GatewayAPI: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.25 ▼0.32 | 1.96 ▲0.17 | 47.08 ▲4.96 |
Dashboard /wp-admin | 2,202 ▲25 | 5.57 ▼0.02 | 91.72 ▼1.62 | 38.39 ▼1.34 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 1.99 ▼0.03 | 38.20 ▲0.41 | 33.84 ▼0.69 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.04 ▲0.04 | 677.59 ▼51.15 | 53.64 ▼11.02 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.21 ▲0.03 | 105.14 ▼3.67 | 46.46 ▼3.02 |
GatewayAPI Settings /wp-admin/options-general.php?page=gatewayapi | 5,078 | 3.37 | 87.02 | 34.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_oc_recipients_import
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- gatewayapi_db_version
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gatewayapi
- > Notice in wp-content/plugins/gatewayapi/tpl/settings_page.php+590
Trying to get property 'name' of non-object
- 6 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gatewayapi
- > Notice in wp-content/plugins/gatewayapi/tpl/settings_page.php+590
Trying to get property 'term_id' of non-object
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 37× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/gatewayapi/inc/security_two_factor.php
- > /wp-content/plugins/gatewayapi/tpl/notification/message.php
- > /wp-content/plugins/gatewayapi/inc/triggers.php
- > /wp-content/plugins/gatewayapi/inc/cpt_receive_sms_ui.php
- > /wp-content/plugins/gatewayapi/inc/cpt_sms_editor_ui.php
- > /wp-content/plugins/gatewayapi/inc/shortcode.php
- > /wp-content/plugins/gatewayapi/src/classes/Trigger.php
- > /wp-content/plugins/gatewayapi/src/classes/Notification.php
- > /wp-content/plugins/gatewayapi/tpl/wp-login-confirmed-phone.php
- > /wp-content/plugins/gatewayapi/inc/cpt_receive_sms.php
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 Passed 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
5 plugin tags: two factor, mobile, security, sms, texting
gatewayapi/gatewayapi.php Passed 13 tests
Analyzing the main PHP file in "GatewayAPI" version 1.8.3
35 characters long description:
Manage SMS broadcasts via WordPress
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected22,714 lines of code in 126 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 73 | 3,083 | 1,125 | 12,365 |
PHP | 38 | 1,360 | 990 | 7,064 |
PO File | 1 | 516 | 614 | 1,502 |
CSS | 5 | 152 | 15 | 913 |
Markdown | 5 | 321 | 0 | 852 |
SVG | 3 | 0 | 1 | 17 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 37.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 185.00 |
Average method complexity | 3.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 156 | |
▷ Static methods | 41 | 26.28% |
▷ Public methods | 116 | 74.36% |
▷ Protected methods | 17 | 10.90% |
▷ Private methods | 23 | 14.74% |
Functions | 161 | |
▷ Named functions | 70 | 43.48% |
▷ Anonymous functions | 91 | 56.52% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin