Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.69ms] Passed 4 tests
A check of server-side resources used by Postmatic Social Commenting
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.71 ▲0.30 |
Dashboard /wp-admin | 3.34 ▲0.04 | 48.34 ▼2.03 |
Posts /wp-admin/edit.php | 3.45 ▲0.10 | 50.53 ▼1.68 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 96.42 ▲8.95 |
Media Library /wp-admin/upload.php | 3.26 ▲0.04 | 41.20 ▲6.17 |
Postmatic Social Commenting /wp-admin/options-general.php?page=postmatic-social | 3.28 | 33.01 |
Server storage [IO: ▲0.80MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Postmatic Social Commenting
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,812 ▲55 | 13.25 ▼0.93 | 4.51 ▲2.43 | 40.52 ▼5.37 |
Dashboard /wp-admin | 2,218 ▲30 | 4.91 ▲0.05 | 99.87 ▼20.79 | 38.76 ▼6.41 |
Posts /wp-admin/edit.php | 2,101 ▲30 | 2.03 ▲0.03 | 38.98 ▲1.38 | 37.64 ▲2.37 |
Add New Post /wp-admin/post-new.php | 1,534 ▲1 | 18.65 ▼4.94 | 612.20 ▼70.84 | 49.19 ▼3.97 |
Media Library /wp-admin/upload.php | 1,397 ▲9 | 4.23 ▲0.06 | 101.25 ▼7.15 | 49.41 ▲1.96 |
Postmatic Social Commenting /wp-admin/options-general.php?page=postmatic-social | 903 | 2.05 | 26.48 | 34.80 |
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 did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/postmatic-social-commenting/templates/settings-wordpress.php
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/postmatic-social-commenting/postmatic-social.php:93
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/postmatic-social-commenting/templates/settings-intro.php:2
- > PHP Fatal error
Uncaught Error: Class 'Postmatic_Social_Network_Authenticator' not found in wp-content/plugins/postmatic-social-commenting/functions/Postmatic_Social_Pinterest_Authenticator.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: social, facebook, social login, wordpresscom, google...
postmatic-social-commenting/postmatic-social.php 85% from 13 tests
Analyzing the main PHP file in "Postmatic Social Commenting" version 1.1.1
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("postmatic-social-commenting.php" instead of "postmatic-social.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,528 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 226 | 145 | 1,447 |
SVG | 1 | 0 | 0 | 520 |
CSS | 3 | 21 | 3 | 351 |
JavaScript | 2 | 29 | 13 | 141 |
PO File | 1 | 26 | 41 | 69 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 12.73 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.34 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 2 | 18.18% |
▷ Concrete classes | 9 | 81.82% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 6 | 5.94% |
▷ Public methods | 70 | 69.31% |
▷ Protected methods | 24 | 23.76% |
▷ Private methods | 7 | 6.93% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/postmatic-logo.png | 5.17KB | 3.58KB | ▼ 30.79% |