Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼138.60ms] Passed 4 tests
Server-side resources used by My Social Media
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 36.82 ▲12.48 |
Dashboard /wp-admin | 3.07 ▲0.01 | 47.74 ▲4.59 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 49.03 ▲3.13 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 88.95 ▼559.74 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 31.02 ▼2.37 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 2 new options
New WordPress options |
---|
msm_my_social_media_install |
msm_my_social_media_version |
Browser metrics Passed 4 tests
My Social Media: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,725 ▲129 | 15.92 ▲0.36 | 13.43 ▲4.72 | 51.24 ▼2.88 |
Dashboard /wp-admin | 2,987 ▲53 | 5.94 ▼0.01 | 166.91 ▲17.76 | 134.75 ▲17.09 |
Posts /wp-admin/edit.php | 2,756 ▲17 | 2.70 ▲0.01 | 73.74 ▲4.19 | 95.41 ▲0.68 |
Add New Post /wp-admin/post-new.php | 1,696 ▲115 | 18.79 ▲1.28 | 384.75 ▼90.37 | 111.71 ▼20.06 |
Media Library /wp-admin/upload.php | 1,768 ▼39 | 4.98 ▼0.04 | 159.25 ▲0.96 | 124.56 ▲1.77 |
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
These items require your attention
- The uninstall procedure has failed, leaving 2 options in the database
- msm_my_social_media_install
- msm_my_social_media_version
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_avatar() in wp-content/plugins/my-social-media/assets/views/admin-view.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/my-social-media/assets/views/admin-info.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: facebook, social sharing, twitter, share buttons, linkedin...
my-social-media/my-social-media.php 92% from 13 tests
The main PHP script in "My Social Media" version 1.0.0 is automatically included on every request by WordPress
The following require your attention:
- Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin317 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 46 | 152 | 271 |
CSS | 1 | 8 | 0 | 42 |
JavaScript | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 24.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.92 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 12 | |
▷ Static methods | 1 | 8.33% |
▷ Public methods | 11 | 91.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 8.33% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 5 | 83.33% |
▷ Class constants | 1 | 16.67% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 31.78KB | 15.37KB | ▼ 51.62% |
screenshot-1.png | 37.70KB | 19.59KB | ▼ 48.05% |