Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin did not install without errors
- > User deprecated in wp-includes/functions.php+5737
Function get_bloginfo was called with an argument that is deprecated since version 2.2.0! The siteurl option is deprecated for the family of bloginfo() functions. Use the url option instead.
Server metrics [RAM: ▲0.46MB] [CPU: ▲491.13ms] 50% from 4 tests
Server-side resources used by Social2Blog
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 686.73ms on /wp-admin/admin.php?page=social2blog-instagram)
- Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 491.13ms on /wp-admin/admin.php?page=social2blog-instagram)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.49 | 45.19 ▲3.48 |
Dashboard /wp-admin | 3.78 ▲0.43 | 728.63 ▲668.34 |
Posts /wp-admin/edit.php | 3.83 ▲0.47 | 763.19 ▲715.24 |
Add New Post /wp-admin/post-new.php | 6.36 ▲0.47 | 727.15 ▲631.42 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 698.95 ▲661.27 |
Manage Gallery /wp-admin/admin.php?page=social2blog-gallery | 3.61 | 681.49 |
Social2Blog /wp-admin/admin.php?page=social2blog | 3.67 | 681.33 |
Manage Instagram /wp-admin/admin.php?page=social2blog-instagram | 3.61 | 686.73 |
Server storage [IO: ▲1.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 214 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
social2blog_advice_cat |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
social2blog_tw_tags |
social2blog_outofsync |
Browser metrics Passed 4 tests
A check of browser resources used by Social2Blog
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,914 ▲168 | 13.42 ▼1.27 | 1.52 ▼0.41 | 26.90 ▼16.19 |
Dashboard /wp-admin | 2,308 ▲117 | 4.95 ▼0.93 | 100.96 ▼1.57 | 83.61 ▲41.49 |
Posts /wp-admin/edit.php | 2,206 ▲114 | 2.17 ▲0.17 | 35.52 ▼5.32 | 52.77 ▲16.57 |
Add New Post /wp-admin/post-new.php | 1,689 ▲155 | 22.46 ▼0.72 | 671.74 ▲1.26 | 45.17 ▼13.51 |
Media Library /wp-admin/upload.php | 1,502 ▲111 | 4.17 ▼0.04 | 93.61 ▼2.40 | 90.25 ▲45.86 |
Manage Gallery /wp-admin/admin.php?page=social2blog-gallery | 919 | 2.20 | 25.60 | 37.97 |
Social2Blog /wp-admin/admin.php?page=social2blog | 1,078 | 2.23 | 28.86 | 41.88 |
Manage Instagram /wp-admin/admin.php?page=social2blog-instagram | 923 | 2.20 | 24.31 | 31.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/social2blog/social2blog_plugin.php:40
- > PHP Warning
Use of undefined constant SOCIAL2BLOG_PLUGINGDIR - assumed 'SOCIAL2BLOG_PLUGINGDIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/social2blog/commons/helpers/class.social2blog-log.php on line 2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=social2blog-instagram
- > Network (severe)
js/social2blog.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% 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
10 plugin tags: import twitter, twitter posts, import facebook post, facebook events, facebook posts...
social2blog/social2blog_plugin.php 77% from 13 tests
The primary PHP file in "Social2Blog" version 0.2.990 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("social2blog.php" instead of "social2blog_plugin.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: The description should be shorter than 140 characters (currently 193 characters long)
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
Success! There were no dangerous files found in this plugin20,306 lines of code in 115 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 86 | 5,938 | 7,261 | 15,568 |
PHP | 14 | 785 | 789 | 2,972 |
HTML | 1 | 39 | 0 | 462 |
JavaScript | 2 | 84 | 61 | 392 |
CSS | 3 | 8 | 5 | 337 |
JSON | 4 | 0 | 0 | 141 |
LESS | 1 | 34 | 29 | 132 |
Sass | 1 | 34 | 29 | 132 |
Markdown | 2 | 41 | 0 | 107 |
TypeScript | 1 | 7 | 5 | 63 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 22.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 93.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 149 | |
▷ Static methods | 23 | 15.44% |
▷ Public methods | 145 | 97.32% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 2.68% |
Functions | 52 | |
▷ Named functions | 52 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 16 | |
▷ Global constants | 16 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.00MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
setting.png | 1.50KB | 1.06KB | ▼ 29.58% |
icon.png | 0.73KB | 0.72KB | 0.40% |
icon-big.png | 1.37KB | 1.43KB | 0.00% |
851579_209602122530903_1060396115_n.png | 0.93KB | 0.87KB | ▼ 6.93% |