Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.22MB] [CPU: ▼13.60ms] Passed 4 tests
An overview of server-side resources used by ProSocial
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.08 | 44.68 ▼3.46 |
Dashboard /wp-admin | 3.74 ▲0.17 | 55.78 ▼1.17 |
Posts /wp-admin/edit.php | 3.79 ▲0.11 | 49.57 ▼3.05 |
Add New Post /wp-admin/post-new.php | 4.96 ▼1.18 | 52.57 ▼45.54 |
Media Library /wp-admin/upload.php | 3.60 ▲0.11 | 38.67 ▼2.36 |
ProSocial /wp-admin/options-general.php?page=prosocial | 3.54 | 32.65 |
Server storage [IO: ▲0.36MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 54 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for ProSocial
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲122 | 13.88 ▼0.70 | 9.27 ▲7.42 | 42.44 ▼0.33 |
Dashboard /wp-admin | 2,202 ▲22 | 5.60 ▲0.04 | 83.43 ▼19.95 | 38.26 ▼3.51 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▲0.01 | 34.64 ▼2.53 | 33.19 ▼1.20 |
Add New Post /wp-admin/post-new.php | 1,550 ▲24 | 23.37 ▲5.80 | 596.03 ▼129.87 | 46.90 ▼12.42 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▼0.08 | 98.36 ▼8.86 | 45.32 ▼2.37 |
ProSocial /wp-admin/options-general.php?page=prosocial | 1,179 | 2.06 | 25.91 | 82.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
- 48 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=prosocial
- > Notice in wp-content/plugins/prosocial/prosocial.php+174
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 fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/prosocial/prosocial.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% 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:
- Plugin Name: You should set the name of your plugin on the first line (
=== prosocial ===
) - Screenshots: Add images for these screenshots: #1 (When the user hovers over the blog post author's name, ProSocial shows a pop-up bar with links to their social media accounts.), #2 (Your blog authors can update their social media accounts in the standard 'Contact info' section of their WordPress user profile.), #3 (The administrator can decide which social media accounts are shown, as well as other options.)
prosocial/prosocial.php Passed 13 tests
"ProSocial" version 0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
66 characters long description:
Plugin for displaying social media accounts next to authors' names
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected521 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 92 | 121 | 374 |
CSS | 1 | 14 | 4 | 81 |
JavaScript | 1 | 44 | 35 | 66 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.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 | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
48 PNG files occupy 0.21MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/gowalla.png | 0.55KB | 0.47KB | ▼ 14.74% |
img/etsy.png | 0.53KB | 0.47KB | ▼ 10.58% |
img/evernote.png | 0.52KB | 0.35KB | ▼ 32.08% |
img/friendfeed.png | 0.72KB | 0.63KB | ▼ 11.73% |
img/reddit.png | 0.73KB | 0.54KB | ▼ 25.13% |