Benchmarks
Plugin footprint Passed 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: ▼148.29ms] Passed 4 tests
A check of server-side resources used by GP Social Share
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▲0.27 | 40.11 ▲12.81 |
Dashboard /wp-admin | 3.22 ▲0.16 | 46.97 ▼2.09 |
Posts /wp-admin/edit.php | 3.33 ▲0.21 | 46.92 ▼13.32 |
Add New Post /wp-admin/post-new.php | 5.12 ▼0.31 | 78.27 ▼573.77 |
Media Library /wp-admin/upload.php | 3.16 ▲0.16 | 36.55 ▼3.99 |
GP Social Settings /wp-admin/themes.php?page=gp-social-options-page | 3.14 | 36.49 |
Server storage [IO: ▲1.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 288 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for GP Social Share
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,740 ▲103 | 16.30 ▲0.40 | 9.88 ▼0.97 | 54.79 ▲7.24 |
Dashboard /wp-admin | 3,005 ▲74 | 7.04 ▲1.09 | 149.10 ▼22.99 | 113.58 ▼27.61 |
Posts /wp-admin/edit.php | 2,782 ▲43 | 2.84 ▲0.15 | 74.30 ▲6.46 | 111.85 ▲12.27 |
Add New Post /wp-admin/post-new.php | 1,985 ▲404 | 15.74 ▼5.72 | 414.49 ▼10.29 | 145.24 ▼51.33 |
Media Library /wp-admin/upload.php | 1,847 ▲37 | 5.55 ▲0.50 | 152.86 ▼36.65 | 127.27 ▲11.05 |
GP Social Settings /wp-admin/themes.php?page=gp-social-options-page | 3,932 | 4.41 | 142.96 | 83.00 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 9× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/gp-social-share-svg/inc/class-social-share.php
- > /wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/templates/image-advanced.php
- > /wp-content/plugins/gp-social-share-svg/inc/gp-social-settings.php
- > /wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/templates/upload.php
- > /wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/templates/audio.php
- > /wp-content/plugins/gp-social-share-svg/inc/css/gp-social-share-css.php
- > /wp-content/plugins/gp-social-share-svg/inc/gp-social-woo.php
- > /wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/templates/video.php
- > /wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/templates/media.php
- 68× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Input_Field' not found in wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/fields/file-input.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/fields/input.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Choice_Field' not found in wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/fields/select.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Field' not found in wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/fields/file.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Taxonomy_Field' not found in wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/fields/taxonomy-advanced.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Text_Field' not found in wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/fields/fieldset-text.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/about/sections/welcome.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Text_Field' not found in wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/fields/color.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Media_Field' not found in wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/fields/file-upload.php:11
- > PHP Fatal error
Uncaught Error: Class 'RWMB_Image_Advanced_Field' not found in wp-content/plugins/gp-social-share-svg/inc/metabox/meta-box/inc/fields/single-image.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: svg, share, social
gp-social-share-svg/gp-social-share.php 77% from 13 tests
"GP Social Share" version 2.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("gp-social-share-svg.php" instead of "gp-social-share.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Domain Path: The domain path folder does not exist ("/languages")
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
There were no executable files found in this plugin15,238 lines of code in 255 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 104 | 1,865 | 6,009 | 8,854 |
JavaScript | 94 | 585 | 527 | 2,462 |
CSS | 41 | 230 | 131 | 2,438 |
PO File | 14 | 534 | 600 | 1,471 |
Markdown | 1 | 7 | 0 | 8 |
SVG | 1 | 0 | 0 | 5 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 34.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 91 | |
▷ Abstract classes | 6 | 6.59% |
▷ Concrete classes | 85 | 93.41% |
▷ Final classes | 0 | 0.00% |
Methods | 572 | |
▷ Static methods | 307 | 53.67% |
▷ Public methods | 497 | 86.89% |
▷ Protected methods | 59 | 10.31% |
▷ Private methods | 16 | 2.80% |
Functions | 70 | |
▷ Named functions | 66 | 94.29% |
▷ Anonymous functions | 4 | 5.71% |
Constants | 10 | |
▷ Global constants | 7 | 70.00% |
▷ Class constants | 3 | 30.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/metabox/meta-box/img/jqueryui/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
inc/metabox/meta-box/img/jqueryui/ui-bg_glass_95_fef1ec_1x400.png | 0.12KB | 0.14KB | 0.00% |
inc/metabox/meta-box/img/jqueryui/ui-icons_454545_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
inc/metabox/meta-box/img/jqueryui/ui-bg_glass_55_fbf9ee_1x400.png | 0.12KB | 0.14KB | 0.00% |
inc/metabox/meta-box/img/jqueryui/ui-bg_flat_75_ffffff_40x100.png | 0.17KB | 0.08KB | ▼ 51.12% |