Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.13MB] [CPU: ▼3.37ms] Passed 4 tests
An overview of server-side resources used by SocketLabs
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.62 ▲1.12 |
Dashboard /wp-admin | 3.43 ▲0.13 | 44.46 ▼4.13 |
Posts /wp-admin/edit.php | 3.54 ▲0.19 | 47.97 ▲0.74 |
Add New Post /wp-admin/post-new.php | 6.03 ▲0.14 | 84.15 ▼9.89 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 35.88 ▼0.18 |
SocketLabs /wp-admin/admin.php?page=socketlabs | 3.33 | 30.74 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by SocketLabs
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲159 | 13.63 ▼0.75 | 7.74 ▲5.69 | 38.06 ▼9.36 |
Dashboard /wp-admin | 2,214 ▲23 | 4.81 ▼0.12 | 109.22 ▲4.30 | 41.20 ▼7.00 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.02 ▼0.00 | 40.06 ▲0.97 | 35.07 ▲4.51 |
Add New Post /wp-admin/post-new.php | 1,530 ▼3 | 18.24 ▼4.90 | 624.34 ▼62.82 | 62.88 ▲2.54 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.19 ▼0.02 | 95.99 ▼9.86 | 41.15 ▼6.00 |
SocketLabs /wp-admin/admin.php?page=socketlabs | 855 | 2.02 | 24.07 | 25.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
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
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/socketlabs/public/partials/socketlabs-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Socketlabs' not found in wp-content/plugins/socketlabs/admin/partials/socketlabs-admin-display.php:32
- > 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 errors were detected
Optimizations
Plugin configuration Passed 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
7 plugin tags: email, deliverability, mailing, injection, mailer...
socketlabs/socketlabs.php Passed 13 tests
The main PHP file in "SocketLabs" ver. 1.0.14 adds more information about the plugin and also serves as the entry point for this plugin
42 characters long description:
Send emails using your SocketLabs account.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,165 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 190 | 749 | 738 |
CSS | 1 | 45 | 4 | 380 |
Markdown | 1 | 18 | 0 | 44 |
JavaScript | 1 | 2 | 27 | 3 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 9.10 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 3.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 9 | 23.68% |
▷ Public methods | 29 | 76.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 23.68% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 11 | 91.67% |
▷ Class constants | 1 | 8.33% |
▷ Public constants | 1 | 100.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
There are no PNG files in this plugin