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.06MB] [CPU: ▼0.15ms] Passed 4 tests
Server-side resources used by Rigororus Social Share
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.06 | 39.26 ▲1.10 |
Dashboard /wp-admin | 3.36 ▲0.06 | 48.34 ▼2.86 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 45.69 ▼3.22 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 92.01 ▲5.97 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 35.22 ▲4.38 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Rigororus Social Share
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲76 | 14.73 ▲0.14 | 1.93 ▲0.24 | 43.53 ▲0.09 |
Dashboard /wp-admin | 2,225 ▲34 | 5.02 ▼0.85 | 99.71 ▼2.56 | 39.26 ▼5.11 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.05 ▲0.08 | 36.54 ▼3.74 | 33.52 ▼4.52 |
Add New Post /wp-admin/post-new.php | 6,244 ▲4,725 | 21.62 ▼1.67 | 898.92 ▲263.41 | 73.68 ▲15.30 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.17 ▼0.02 | 94.83 ▼1.44 | 39.55 ▼8.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/rigorous-social-share/rigorous-social-share.php:18
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/rigorous-social-share/inc/backend/main-page.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: share counter, social network, social icons, social share counter, social network share...
rigorous-social-share/rigorous-social-share.php Passed 13 tests
The primary PHP file in "Rigororus Social Share" version 1.0.1 is used by WordPress to initiate all plugin functionality
77 characters long description:
This plugin allow to add social share button in post and page of you website.
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
Success! There were no dangerous files found in this plugin1,166 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 1 | 0 | 0 | 504 |
PHP | 3 | 112 | 43 | 387 |
CSS | 2 | 77 | 10 | 275 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 3.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.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 | 18 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 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 | 5 | |
▷ Global constants | 5 | 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
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/demo-1.png | 5.40KB | 2.77KB | ▼ 48.66% |
images/demo-3.png | 3.75KB | 1.82KB | ▼ 51.43% |
images/demo-2.png | 3.11KB | 1.73KB | ▼ 44.44% |