Benchmarks
Plugin footprint 75% 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
- Install procedure had errors
- > Parse error in wp-content/plugins/social-features-for-wp/social-monster.php+1112
syntax error, unexpected 'private' (T_PRIVATE), expecting case (T_CASE) or default (T_DEFAULT) or '}'
Server metrics [RAM: ▼0.00MB] [CPU: ▼141.77ms] Passed 4 tests
Analyzing server-side resources used by Social Monster
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 39.30 ▲13.83 |
Dashboard /wp-admin | 3.06 ▲0.00 | 52.81 ▲3.06 |
Posts /wp-admin/edit.php | 3.11 ▲0.00 | 49.23 ▲1.77 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.02 | 97.75 ▼570.35 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 30.15 ▼1.54 |
Server storage [IO: ▲0.65MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Social Monster
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,703 ▲107 | 16.33 ▲0.82 | 11.50 ▲1.35 | 50.87 ▼2.69 |
Dashboard /wp-admin | 2,970 ▲36 | 5.97 ▼0.00 | 168.23 ▲16.70 | 124.79 ▲9.28 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.70 ▼0.00 | 71.05 ▼5.93 | 95.07 ▲4.23 |
Add New Post /wp-admin/post-new.php | 1,615 ▲34 | 20.91 ▲4.25 | 291.10 ▼177.08 | 109.13 ▼19.16 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.00 ▼0.04 | 165.57 ▲2.89 | 123.94 ▲0.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/social-features-for-wp/sharer.php
- > /wp-content/plugins/social-features-for-wp/templates/default/ru-RU.php
- > /wp-content/plugins/social-features-for-wp/dashboard/ru-RU.php
- > /wp-content/plugins/social-features-for-wp/lang.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Parse error
syntax error, unexpected 'private' (T_PRIVATE), expecting case (T_CASE) or default (T_DEFAULT) or '}' in wp-content/plugins/social-features-for-wp/social-monster.php on line 1112
- > PHP Parse 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 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Donate link: Invalid URI found ("")
social-features-for-wp/social-monster.php 92% from 13 tests
The principal PHP file in "Social Monster" v. 1.0.10 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("social-features-for-wp.php" instead of "social-monster.php")
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
Good job! No executable or dangerous file extensions detected5,665 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 15 | 215 | 2,864 |
PHP | 5 | 34 | 40 | 2,090 |
CSS | 3 | 0 | 0 | 711 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 101.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 396.00 |
Average method complexity | 13.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 70.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 4 | 100.00% |
Methods | 32 | |
▷ Static methods | 4 | 12.50% |
▷ Public methods | 14 | 43.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 56.25% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 65 | |
▷ Global constants | 65 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dashboard/images/icons32.png | 1.00KB | 0.95KB | ▼ 5.08% |
dashboard/images/popup/pu20.png | 1.96KB | 1.83KB | ▼ 6.66% |
dashboard/images/pay/qiwi.png | 4.49KB | 3.05KB | ▼ 32.17% |
dashboard/images/popup/pu24.png | 3.99KB | 2.28KB | ▼ 42.69% |
dashboard/images/btn-ud.png | 1.32KB | 1.35KB | 0.00% |