Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.47MB] [CPU: ▼3.87ms] Passed 4 tests
This is a short check of server-side resources used by WP Real-Time Social-Proof
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.94 ▲0.48 | 41.11 ▼1.11 |
Dashboard /wp-admin | 3.81 ▲0.50 | 52.57 ▼1.96 |
Posts /wp-admin/edit.php | 3.87 ▲0.51 | 50.64 ▼1.98 |
Add New Post /wp-admin/post-new.php | 6.33 ▲0.44 | 86.24 ▼10.42 |
Media Library /wp-admin/upload.php | 3.68 ▲0.44 | 40.30 ▲2.42 |
All Social Proofs /wp-admin/edit.php?post_type=socialproof | 3.72 | 38.70 |
Add New Social Proof /wp-admin/post-new.php?post_type=socialproof | 3.72 | 47.64 |
Hero Support /wp-admin/edit.php?post_type=socialproof&page=wprtsp-support | 3.64 | 45.65 |
Social Proof /wp-admin/options-general.php?page=wprtsp | 3.64 | 33.98 |
WP Real-Time Social-Proof /wp-admin/index.php?page=wprtsp-firstrun | 3.64 | 34.54 |
Server storage [IO: ▲4.23MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 237 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
wprtsp_firstrun |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Real-Time Social-Proof
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲126 | 13.33 ▼1.22 | 1.60 ▼0.22 | 38.55 ▼8.79 |
Dashboard /wp-admin | 2,278 ▲90 | 4.92 ▼0.98 | 97.48 ▼9.73 | 85.81 ▲40.34 |
Posts /wp-admin/edit.php | 2,160 ▲71 | 2.02 ▲0.03 | 34.66 ▼4.39 | 37.91 ▲3.09 |
Add New Post /wp-admin/post-new.php | 1,583 ▲41 | 23.13 ▲4.67 | 693.67 ▲38.74 | 63.76 ▲8.99 |
Media Library /wp-admin/upload.php | 1,454 ▲66 | 4.13 ▼0.10 | 97.76 ▼5.16 | 71.47 ▲25.25 |
All Social Proofs /wp-admin/edit.php?post_type=socialproof | 1,113 | 1.95 | 32.99 | 68.92 |
Add New Social Proof /wp-admin/post-new.php?post_type=socialproof | 3,048 | 9.29 | 353.15 | 107.21 |
Hero Support /wp-admin/edit.php?post_type=socialproof&page=wprtsp-support | 864 | 2.01 | 39.15 | 67.14 |
Social Proof /wp-admin/options-general.php?page=wprtsp | 1,787 | 2.77 | 34.56 | 81.96 |
WP Real-Time Social-Proof /wp-admin/index.php?page=wprtsp-firstrun | 1,003 | 2.17 | 24.81 | 70.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- wprtsp_firstrun
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-real-time-social-proof/inc/meta.php:26
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
- > GET request to /wp-admin/post-new.php?post_type=socialproof
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).sortable is not a function" "TypeError: $(...).sortable is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/post-new.php?post_type=socialproof:437:52)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/post-new.php?post_type=socialproof
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).sortable is not a function
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
- Tags: You are using too many tags: 14 tag instead of maximum 10
- Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png), #2 (screenshot-2.png), #3 (screenshot-3.png), #4 (screenshot-4.png), #5 (screenshot-5.png), #6 (screenshot-6.png)
wp-real-time-social-proof/wprtsp.php 85% from 13 tests
The primary PHP file in "WP Real-Time Social-Proof" version 2.2.6 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-real-time-social-proof.php" instead of "wprtsp.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
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin4,793 lines of code in 28 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 227 | 81 | 1,702 |
CSS | 5 | 354 | 158 | 1,460 |
SVG | 15 | 43 | 4 | 865 |
JavaScript | 4 | 35 | 10 | 495 |
Sass | 1 | 54 | 0 | 271 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 59.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 112.00 |
Average method complexity | 3.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 101 | |
▷ Static methods | 4 | 3.96% |
▷ Public methods | 100 | 99.01% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 0.99% |
Functions | 10 | |
▷ Named functions | 4 | 40.00% |
▷ Anonymous functions | 6 | 60.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.98MB with 0.49MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 25.48KB | 14.35KB | ▼ 43.66% |
screenshot-6.png | 434.37KB | 197.22KB | ▼ 54.60% |
screenshot-2.png | 36.20KB | 18.81KB | ▼ 48.04% |
screenshot-3.png | 32.98KB | 18.79KB | ▼ 43.03% |
screenshot-1.png | 30.57KB | 11.72KB | ▼ 61.67% |