Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.20MB] [CPU: ▼1.19ms] Passed 4 tests
A check of server-side resources used by Share by Email
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 44.86 ▼0.40 |
Dashboard /wp-admin | 3.55 ▲0.25 | 50.11 ▲1.54 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 51.51 ▲1.05 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 88.62 ▼6.94 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 37.15 ▲1.59 |
Share By Email /wp-admin/options-general.php?page=share_by_email_options | 3.38 | 34.67 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 33 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
sbe_settings_general_options |
uptime_ghost_options |
sbe_settings_email_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Share by Email
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,918 ▲172 | 13.73 ▼0.91 | 5.62 ▲3.75 | 42.89 ▼5.95 |
Dashboard /wp-admin | 2,216 ▲34 | 5.83 ▼0.04 | 107.17 ▼6.37 | 40.30 ▼3.99 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.01 ▲0.02 | 37.96 ▼3.93 | 32.53 ▼5.16 |
Add New Post /wp-admin/post-new.php | 1,523 ▼10 | 23.24 ▼0.09 | 679.09 ▼16.84 | 51.35 ▼0.43 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.20 ▲0.06 | 98.72 ▼4.27 | 42.44 ▼5.50 |
Share By Email /wp-admin/options-general.php?page=share_by_email_options | 960 | 2.05 | 22.34 | 28.94 |
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 9 options in the database
- theysaidso_admin_options
- sbe_settings_general_options
- uptime_ghost_options
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- sbe_settings_email_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/share-by-email/public/partials/share-by-email-public-display.php
- > /wp-content/plugins/share-by-email/admin/partials/share-by-email-admin-display.php
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/share-by-email/includes/class-share-by-email-admin-shortcodes.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/share-by-email/wp-lhl-admin-ui/wp-lhl-admin-ui.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/share-by-email/admin/class-share-by-email-plugin-settings.php:3
- > 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)
Everything seems fine, but this is not an exhaustive test
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
4 plugin tags: share, send post by email, share by email, email
share-by-email/share-by-email.php Passed 13 tests
The main PHP script in "Share by Email" version 1.0.2 is automatically included on every request by WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin1,163 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 467 | 1,061 | 1,046 |
CSS | 3 | 38 | 34 | 109 |
JavaScript | 2 | 4 | 54 | 6 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 6.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 16 | 22.86% |
▷ Public methods | 64 | 91.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 8.57% |
Functions | 5 | |
▷ Named functions | 4 | 80.00% |
▷ Anonymous functions | 1 | 20.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin