Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▼6.31ms] Passed 4 tests
A check of server-side resources used by MM Social
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 42.91 ▲0.13 |
Dashboard /wp-admin | 3.40 ▲0.10 | 49.61 ▼6.51 |
Posts /wp-admin/edit.php | 3.45 ▲0.09 | 51.72 ▲0.03 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 91.27 ▼17.64 |
Media Library /wp-admin/upload.php | 3.33 ▲0.09 | 39.63 ▼1.10 |
Settings /wp-admin/admin.php?page=socialicon | 3.29 | 36.71 |
Help /wp-admin/admin.php?page=socialicon-help | 3.29 | 34.20 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 67 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by MM Social
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,878 ▲117 | 13.61 ▼0.74 | 1.70 ▲0.01 | 42.33 ▼0.42 |
Dashboard /wp-admin | 2,314 ▲134 | 5.92 ▲0.25 | 102.56 ▲9.98 | 80.84 ▲32.95 |
Posts /wp-admin/edit.php | 2,179 ▲79 | 2.67 ▲0.64 | 42.25 ▲3.95 | 36.99 ▲0.22 |
Add New Post /wp-admin/post-new.php | 1,728 ▲200 | 22.77 ▼0.35 | 779.33 ▲110.85 | 38.92 ▼12.54 |
Media Library /wp-admin/upload.php | 1,476 ▲76 | 4.68 ▲0.45 | 106.33 ▼1.51 | 77.06 ▲30.24 |
Settings /wp-admin/admin.php?page=socialicon | 4,148 | 4.30 | 91.88 | 47.15 |
Help /wp-admin/admin.php?page=socialicon-help | 886 | 2.30 | 29.64 | 25.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mm-social/mm-social.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mm-social/mm-social.php:19
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/mm-social/mm-social.php on line 15
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/mm-social/mm-social.php on line 15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: Please a description for screenshot #3 in mm-social/assets to your readme.txt
mm-social/mm-social.php Passed 13 tests
The principal PHP file in "MM Social" v. 1.1 is loaded by WordPress automatically on each request
62 characters long description:
This is easy use plugin with this shortcode : [MM_SOCIAL_ICON]
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
Success! There were no dangerous files found in this plugin1,985 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 23 | 32 | 901 |
CSS | 7 | 15 | 45 | 628 |
PHP | 5 | 117 | 16 | 456 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 16.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 4.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 39.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 9 | 100.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
24 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/custom_background.png | 1.87KB | 2.12KB | 0.00% |
assets/images/colorpicker_hex.png | 0.52KB | 0.42KB | ▼ 19.92% |
assets/images/colorpicker_background.png | 1.85KB | 2.14KB | 0.00% |
assets/images/custom_hsb_h.png | 0.95KB | 0.73KB | ▼ 23.40% |
assets/images/custom_hex.png | 0.55KB | 0.39KB | ▼ 28.11% |