Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼5.24ms] Passed 4 tests
Analyzing server-side resources used by TotalSend WordPress Integration
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 44.57 ▲1.17 |
Dashboard /wp-admin | 3.48 ▲0.17 | 44.68 ▼7.41 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 49.33 ▲0.24 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 82.80 ▼14.97 |
Media Library /wp-admin/upload.php | 3.40 ▲0.17 | 36.68 ▲2.72 |
TotalSend Integration /wp-admin/options-general.php?page=totalsend-subscribe | 3.37 | 33.52 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 8 new options
New WordPress options |
---|
totalsend-subs |
widget_theysaidso_widget |
widget_recent-posts |
widget_ts_subscribe |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by TotalSend WordPress Integration
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,898 ▲152 | 13.59 ▼0.72 | 5.78 ▲4.08 | 38.49 ▼8.07 |
Dashboard /wp-admin | 2,212 ▲27 | 5.86 ▼0.04 | 97.66 ▼1.44 | 39.08 ▼5.94 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.03 ▲0.04 | 34.79 ▼0.39 | 29.45 ▼5.01 |
Add New Post /wp-admin/post-new.php | 1,539 ▲11 | 23.09 ▲4.77 | 646.82 ▼24.54 | 62.05 ▲10.35 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.21 ▲0.03 | 94.00 ▼13.76 | 40.68 ▼6.69 |
TotalSend Integration /wp-admin/options-general.php?page=totalsend-subscribe | 934 | 1.79 | 31.17 | 30.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_ts_subscribe
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% 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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/totalsend-integration/totalsend_subscribe.php on line 24
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/totalsend-integration/totalsend_subscribe.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/totalsend-integration/totalsend_subscribe.php:28
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=totalsend-subscribe
- > Network (severe)
https://77fd076ee376409e7cdf45b674315ad16b51a2f9.googledrive.com/host/0B3ve0VXYPb3DX0FGTXhuTVBueTQ/ts_sig_logo.png - Failed to load resource: the server responded with a status of 404 ()
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: totalsend, subscribe, email newsletters, newsletters
totalsend-integration/totalsend_subscribe.php 85% from 13 tests
The principal PHP file in "TotalSend WordPress Integration" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 156 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("totalsend-integration.php" instead of "totalsend_subscribe.php")
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
No dangerous file extensions were detected1,068 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 157 | 75 | 1,024 |
JavaScript | 1 | 7 | 8 | 44 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 33.50 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 56.00 |
Average method complexity | 4.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 17 | 44.74% |
▷ Public methods | 32 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.79% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.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
No PNG images were found in this plugin