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
Installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.48ms] Passed 4 tests
Server-side resources used by MB Social Sharing Plugin
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 39.88 ▲3.66 |
Dashboard /wp-admin | 3.33 ▼0.01 | 48.02 ▼8.69 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 42.24 ▼1.87 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 78.58 ▼14.43 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 31.88 ▼0.93 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 8 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
mb_social_share_plugin_installed |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
mb_mb_social_sharing_general_settings_name |
Browser metrics Passed 4 tests
This is an overview of browser requirements for MB Social Sharing Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲46 | 14.54 ▲0.14 | 1.64 ▲0.04 | 44.75 ▲2.95 |
Dashboard /wp-admin | 2,211 ▲30 | 5.62 ▼0.03 | 88.55 ▼11.46 | 42.54 ▼1.14 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 2.01 ▼0.01 | 37.72 ▲2.51 | 34.64 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.22 ▲0.06 | 631.97 ▼80.87 | 50.80 ▼6.56 |
Media Library /wp-admin/upload.php | 1,416 ▲13 | 4.24 ▲0.09 | 100.66 ▼3.82 | 43.34 ▼3.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options were found after uninstall: 8 options
- mb_mb_social_sharing_general_settings_name
- db_upgraded
- theysaidso_admin_options
- mb_social_share_plugin_installed
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 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)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 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
7 plugin tags: twitter share, googleplus share, facebook share, linkedin share, pinterest share...
mb-social-sharing/social_sharing.php 92% from 13 tests
The main file in "MB Social Sharing Plugin" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("mb-social-sharing.php" instead of "social_sharing.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
There were no executable files found in this plugin704 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 210 | 157 | 695 |
CSS | 1 | 8 | 0 | 9 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.55 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 1 | 2.38% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
There are no PNG files in this plugin