Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼6.72ms] Passed 4 tests
An overview of server-side resources used by TukuToi Send Email If
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.35 ▼14.58 |
Dashboard /wp-admin | 3.36 ▲0.06 | 47.55 ▼1.96 |
Posts /wp-admin/edit.php | 3.47 ▲0.12 | 47.37 ▲0.89 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 85.90 ▼11.24 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.90 ▲1.03 |
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: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for TukuToi Send Email If
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲56 | 13.72 ▼0.95 | 1.77 ▼0.20 | 43.18 ▲5.97 |
Dashboard /wp-admin | 2,205 ▲14 | 4.82 ▼0.06 | 115.54 ▲14.23 | 43.44 ▲1.41 |
Posts /wp-admin/edit.php | 2,091 ▼1 | 2.02 ▼0.01 | 33.92 ▼3.32 | 34.24 ▲3.95 |
Add New Post /wp-admin/post-new.php | 1,516 ▼12 | 17.69 ▼5.39 | 665.59 ▲37.24 | 57.89 ▲4.96 |
Media Library /wp-admin/upload.php | 1,393 ▲2 | 4.25 ▲0.12 | 97.71 ▲2.91 | 40.72 ▼1.14 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_meta() in wp-content/plugins/tkt-send-email-if/admin/partials/tkt-send-email-if-admin-display.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: email, view, talent, visitor notification, classicpress
tkt-send-email-if/tkt-send-email-if.php Passed 13 tests
The main PHP file in "TukuToi Send Email If" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
133 characters long description:
Send Email If Plugin allows you to send an email to a dynamically set receiver, whenever a Post is visited by users of defined roles.
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
Everything looks great! No dangerous files found in this plugin225 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 122 | 456 | 216 |
CSS | 1 | 0 | 4 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 4.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 72.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 28.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There are no PNG files in this plugin