Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- Install procedure had errors
- > Notice in wp-content/plugins/wp-social-integrator/wp-social-integrator.php+12
Only variables should be passed by reference
Server metrics [RAM: ▼1.96MB] [CPU: ▼50.10ms] Passed 4 tests
An overview of server-side resources used by WP social integrator - WordPress social integrator
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.33 ▼37.16 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.99 ▼35.67 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.55 ▼40.88 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.51 ▼86.67 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.82 ▼29.88 |
WP social integrator /wp-admin/options-general.php?page=wpss | 2.05 | 5.25 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for WP social integrator - WordPress social integrator
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,947 ▲201 | 14.42 ▼0.23 | 34.23 ▲32.50 | 45.41 ▲0.96 |
Dashboard /wp-admin | 2,223 ▲38 | 4.92 ▼0.93 | 108.06 ▲6.26 | 40.92 ▼0.85 |
Posts /wp-admin/edit.php | 2,109 ▲38 | 2.07 ▼0.08 | 40.51 ▲4.56 | 35.70 ▲0.59 |
Add New Post /wp-admin/post-new.php | 1,533 ▲19 | 23.28 ▲5.70 | 670.49 ▼17.36 | 55.87 ▼0.61 |
Media Library /wp-admin/upload.php | 1,399 ▲14 | 4.25 ▲0.00 | 95.88 ▼15.51 | 43.68 ▼4.61 |
WP social integrator /wp-admin/options-general.php?page=wpss | 1,051 | 3.42 | 71.10 | 35.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wp-social-integrator/wp-social-integrator.php+12
Only variables should be passed by reference
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wpss
- > Notice in wp-content/plugins/wp-social-integrator/wp-social-integrator.php+12
Only variables should be passed by reference
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wpss
- > Notice in wp-content/plugins/wp-social-integrator/tpls/settings.php+37
Trying to access array offset on value of type bool
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
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-social-integrator/libs/class.plugin.php on line 8
- > PHP Notice
Only variables should be passed by reference in wp-content/plugins/wp-social-integrator/wp-social-integrator.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-social-integrator/libs/class.plugin.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-social-integrator/tpls/settings.php:1
- > PHP Warning
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=wpss
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=wpss 189:22 Uncaught TypeError: jQuery(...).live is not a function
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (social integrator window panel), #2 (Facebook window), #3 (settings window)
wp-social-integrator/wp-social-integrator.php Passed 13 tests
The main PHP file in "WP social integrator - WordPress social integrator" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
27 characters long description:
WordPress social integrator
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 plugin424 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 24 | 10 | 282 |
CSS | 1 | 7 | 0 | 142 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
7 PNG files occupy 0.34MB with 0.12MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
1.png | 127.91KB | 54.10KB | ▼ 57.71% |
images/facebook.png | 1.45KB | 1.22KB | ▼ 15.94% |
images/google.png | 1.79KB | 1.71KB | ▼ 4.54% |
images/vk.png | 2.11KB | 1.57KB | ▼ 25.61% |
2.png | 161.73KB | 48.34KB | ▼ 70.11% |