Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.53MB] [CPU: ▼35.02ms] Passed 4 tests
Analyzing server-side resources used by eSMS Notify
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 38.73 ▼2.23 |
Dashboard /wp-admin | 3.43 ▲0.12 | 51.69 ▼0.68 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.13 ▲4.19 |
Add New Post /wp-admin/post-new.php | 3.38 ▼2.51 | 40.24 ▼141.34 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 46.75 ▲10.17 |
eSMS Notify /wp-admin/options-general.php?page=eSMS-settings | 3.24 | 30.74 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 137 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
eSMS_settings |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by eSMS Notify
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.18 ▼1.11 | 1.72 ▲0.01 | 40.76 ▼1.84 |
Dashboard /wp-admin | 2,204 ▲22 | 5.79 ▼0.26 | 104.34 ▼18.50 | 40.93 ▼3.64 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.00 ▼0.04 | 38.95 ▲0.20 | 34.51 ▼1.84 |
Add New Post /wp-admin/post-new.php | 1,401 ▼113 | 17.84 ▲0.22 | 582.63 ▼52.40 | 68.64 ▲20.69 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.19 ▼0.01 | 109.46 ▲2.72 | 48.59 ▲0.90 |
eSMS Notify /wp-admin/options-general.php?page=eSMS-settings | 1,126 | 4.22 | 74.30 | 26.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- eSMS_settings
- widget_recent-comments
- can_compress_scripts
- 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
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=eSMS-settings
- > Notice in wp-content/plugins/esms-notify/functions/settings.php+145
Trying to access array offset on value of type bool
SRP 0% 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 take a closer look at the following
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/esms-notify/functions/templates.php
- > /wp-content/plugins/esms-notify/vendor/wp-user-manager/wp-optionskit/includes/views/settings-page.php
- 103× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/ItopInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/AsgardInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/AnnotateCmsInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/PhiftyInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/PPIInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/ProcessWireInstaller.php:5
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/MagentoInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/DokuWikiInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/esms-notify/vendor/composer/installers/src/Composer/Installers/MantisBTInstaller.php:6
- > PHP Fatal error
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)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: esms, sms woocommerce
esms-notify/esms.php 92% from 13 tests
The main PHP script in "eSMS Notify" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("esms-notify.php" instead of "esms.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin3,528 lines of code in 129 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 119 | 759 | 960 | 3,034 |
JSON | 3 | 0 | 0 | 363 |
YAML | 3 | 31 | 3 | 123 |
JavaScript | 3 | 0 | 17 | 7 |
CSS | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 2.99 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 108 | |
▷ Abstract classes | 1 | 0.93% |
▷ Concrete classes | 107 | 99.07% |
▷ Final classes | 0 | 0.00% |
Methods | 161 | |
▷ Static methods | 15 | 9.32% |
▷ Public methods | 106 | 65.84% |
▷ Protected methods | 34 | 21.12% |
▷ Private methods | 21 | 13.04% |
Functions | 15 | |
▷ Named functions | 9 | 60.00% |
▷ Anonymous functions | 6 | 40.00% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected