Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼6.52ms] 75% from 4 tests
Server-side resources used by Goo Share This
It is recommended to improve the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 824.06ms on /wp-admin/admin.php?page=goo-tools-plugin-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 39.41 ▼10.42 |
Dashboard /wp-admin | 3.43 ▲0.12 | 51.50 ▼2.11 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 50.62 ▲3.02 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.12 | 84.76 ▼11.59 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 37.97 ▼1.95 |
Goo Tools Plugins /wp-admin/admin.php?page=goo-tools-plugin-settings | 3.34 | 824.06 |
Goo Share This /wp-admin/admin.php?page=goo-sharethis-plugin-settings | 3.31 | 33.34 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
goosh_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Goo Share This
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲163 | 13.43 ▼1.29 | 8.40 ▲6.64 | 38.89 ▼8.48 |
Dashboard /wp-admin | 2,222 ▲45 | 5.55 ▼0.11 | 83.99 ▼13.63 | 35.35 ▼4.86 |
Posts /wp-admin/edit.php | 2,127 ▲24 | 2.00 ▲0.02 | 37.62 ▼1.63 | 33.04 ▼2.09 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.16 ▲0.11 | 672.46 ▼3.47 | 56.87 ▼6.30 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.21 ▼0.01 | 100.79 ▼17.85 | 42.30 ▼5.13 |
Goo Tools Plugins /wp-admin/admin.php?page=goo-tools-plugin-settings | 829 | 2.12 | 23.64 | 26.96 |
Goo Share This /wp-admin/admin.php?page=goo-sharethis-plugin-settings | 1,051 | 2.01 | 25.36 | 34.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- goosh_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=goo-tools-plugin-settings
- > Warning in wp-content/plugins/goo-share-this/goo_tools.php+34
Invalid argument supplied for foreach()
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
- 3× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/goo-share-this/admin.php
- > /wp-content/plugins/goo-share-this/goo_tools.php
- > /wp-content/plugins/goo-share-this/goo-share-this.php
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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
9 plugin tags: social share buttons, content, share, social network, sharer...
goo-share-this/goo-share-this.php Passed 13 tests
Analyzing the main PHP file in "Goo Share This" version 1.1.0
80 characters long description:
This plugin adds social button for sharing post on social media [goo-share-this]
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 detected860 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 110 | 24 | 665 |
CSS | 2 | 26 | 0 | 174 |
JavaScript | 2 | 3 | 0 | 21 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.52 |
Average class complexity | 71.00 |
▷ Minimum class complexity | 71.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 6.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 33.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 33.33% |
Functions | 11 | |
▷ Named functions | 11 | 100.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 Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/stared_m.png | 9.19KB | 4.00KB | ▼ 56.51% |
screenshot-1.png | 38.20KB | 21.36KB | ▼ 44.07% |
images/fb.png | 0.75KB | 0.76KB | 0.00% |
admin/b_dot.png | 0.19KB | 0.14KB | ▼ 25.25% |
images/twitter_g.png | 0.50KB | 0.73KB | 0.00% |