Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/social-space/index.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; social_space has a deprecated constructor
Server metrics [RAM: ▼2.16MB] [CPU: ▼60.40ms] Passed 4 tests
Analyzing server-side resources used by Social Space
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.10 ▼1.63 | 5.10 ▼37.33 |
Dashboard /wp-admin | 2.12 ▼1.44 | 5.93 ▼49.10 |
Posts /wp-admin/edit.php | 2.12 ▼1.55 | 6.31 ▼54.87 |
Add New Post /wp-admin/post-new.php | 2.12 ▼4.02 | 6.75 ▼100.28 |
Media Library /wp-admin/upload.php | 2.12 ▼1.37 | 6.73 ▼29.41 |
Server storage [IO: ▲0.33MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_social_space |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Social Space
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.22 ▲0.02 | 2.00 ▲0.42 | 42.14 ▲0.24 |
Dashboard /wp-admin | 2,195 ▲18 | 5.62 ▼0.07 | 90.35 ▼3.04 | 38.28 ▼5.60 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.01 ▲0.00 | 42.10 ▲3.69 | 37.81 ▲0.98 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 23.28 ▲0.13 | 700.35 ▲18.57 | 50.70 ▼2.38 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.21 ▼0.03 | 98.61 ▼5.74 | 42.64 ▼0.51 |
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
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/social-space/index.php+16
Methods with the same name as their class will not be constructors in a future version of PHP; social_space has a deprecated constructor
- Zombie WordPress options detected upon uninstall: 7 options
- widget_social_space
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-space/index.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: There are too many tags (14 tag instead of maximum 10)
social-space/index.php 85% from 13 tests
"Social Space" version 4.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 141 characters long)
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("social-space.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin295 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 4 | 3 | 191 |
PHP | 1 | 16 | 21 | 104 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 18.00 |
▷ Minimum class complexity | 18.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 5.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 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 | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
8 PNG files occupy 0.31MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 185.70KB | 72.36KB | ▼ 61.04% |
(invalid) screenshot-2.png | 34.35KB | 0.00KB | ▼ 100.00% |
assets/type3.png | 0.38KB | 0.31KB | ▼ 18.77% |
assets/social.png | 27.04KB | 12.40KB | ▼ 54.13% |
screenshot-1.png | 50.68KB | 12.88KB | ▼ 74.59% |