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 gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.03ms] Passed 4 tests
This is a short check of server-side resources used by Social Side Contact
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.59 ▼2.21 |
Dashboard /wp-admin | 3.33 ▲0.02 | 49.47 ▼5.41 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 52.03 ▼4.57 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 98.86 ▲0.06 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 38.05 ▲1.84 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Social Side Contact
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲117 | 14.35 ▼0.04 | 2.10 ▲0.55 | 42.70 ▼7.01 |
Dashboard /wp-admin | 2,214 ▲34 | 5.61 ▼0.04 | 86.35 ▼4.25 | 40.33 ▼7.93 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 1.99 ▼0.11 | 39.50 ▼4.25 | 36.56 ▼0.80 |
Add New Post /wp-admin/post-new.php | 1,549 ▲23 | 25.19 ▲2.16 | 651.28 ▼29.23 | 71.52 ▲12.57 |
Media Library /wp-admin/upload.php | 1,419 ▲22 | 4.18 ▲0.04 | 96.76 ▼4.19 | 41.70 ▼7.41 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-side-contact/social-contact.php:20
- > 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)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Screenshot #4 (Showing plugin on mobile) image required
social-side-contact/social-contact.php 92% from 13 tests
The primary PHP file in "Social Side Contact" version 1.0.9 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-side-contact.php" instead of "social-contact.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin147 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 18 | 72 |
CSS | 1 | 2 | 2 | 41 |
Markdown | 1 | 22 | 0 | 34 |
PHP code Passed 2 tests
This is a very shot 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.03 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
5 PNG files occupy 0.21MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/facebook-icon.png | 1.51KB | 0.68KB | ▼ 55.35% |
images/LINE_Icon.png | 13.85KB | 4.09KB | ▼ 70.48% |
images/emailIcon.png | 69.51KB | 14.63KB | ▼ 78.96% |
images/phoneicon.png | 106.27KB | 23.90KB | ▼ 77.51% |
images/Messenger_Icon.png | 21.63KB | 7.93KB | ▼ 63.32% |