Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.24MB] [CPU: ▲0.48ms] Passed 4 tests
A check of server-side resources used by DR!M Share
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 39.79 ▼3.40 |
Dashboard /wp-admin | 3.59 ▲0.29 | 51.32 ▼0.24 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 54.11 ▲2.75 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 111.82 ▲12.82 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 40.14 ▲2.83 |
Server storage [IO: ▲0.90MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by DR!M Share
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,853 ▲107 | 13.21 ▼1.44 | 4.93 ▲3.31 | 42.76 ▼1.98 |
Dashboard /wp-admin | 2,235 ▲47 | 4.92 ▼0.98 | 112.66 ▲8.20 | 40.98 ▲1.08 |
Posts /wp-admin/edit.php | 2,118 ▲29 | 2.06 ▲0.06 | 41.56 ▲0.75 | 34.81 ▼2.48 |
Add New Post /wp-admin/post-new.php | 1,539 ▲20 | 23.27 ▲0.03 | 676.67 ▼10.87 | 58.18 ▼8.58 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.26 ▲0.03 | 98.56 ▼19.89 | 48.46 ▲1.87 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 8× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'Drim_Share' not found in wp-content/plugins/drim-share/admin/partials/drim-share-admin-display-sidebar.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/drim-share/admin/inc/svg-functions.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/drim-share/admin/inc/svg-functions.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/drim-share/admin/partials/drim-share-settings-link.php:36
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/drim-share/admin/partials/drim-share-admin-functions.php:710
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/drim-share/admin/inc/svg-functions.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/drim-share/admin/partials/drim-share-settings-fields.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/drim-share/admin/partials/class-drim-share-options.php:682
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots lack descriptions #1, #2, #3 in drim-share/assets to your readme.txt
drim-share/drim-share.php Passed 13 tests
Analyzing the main PHP file in "DR!M Share" version 1.2.0
63 characters long description:
A simple lightweight and mobile friendly social sharing plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected4,054 lines of code in 31 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 694 | 1,659 | 1,958 |
JavaScript | 2 | 327 | 126 | 1,155 |
CSS | 3 | 18 | 16 | 569 |
PO File | 1 | 95 | 95 | 219 |
Markdown | 1 | 28 | 0 | 94 |
SVG | 1 | 0 | 0 | 52 |
XML | 1 | 0 | 0 | 7 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 19.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 134.00 |
Average method complexity | 2.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 94 | |
▷ Static methods | 11 | 11.70% |
▷ Public methods | 87 | 92.55% |
▷ Protected methods | 2 | 2.13% |
▷ Private methods | 5 | 5.32% |
Functions | 38 | |
▷ Named functions | 36 | 94.74% |
▷ Anonymous functions | 2 | 5.26% |
Constants | 9 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 9 | 100.00% |
▷ Public constants | 9 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
5 PNG files occupy 0.62MB with 0.43MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/ds_fixed_mobile.png | 107.72KB | 31.34KB | ▼ 70.91% |
admin/assets/images/ds_full_mobile.png | 107.38KB | 31.06KB | ▼ 71.07% |
admin/assets/images/ds_in_content.png | 163.53KB | 61.87KB | ▼ 62.17% |
admin/assets/images/ds_in_content_mobile.png | 107.25KB | 30.93KB | ▼ 71.16% |
admin/assets/images/ds_fixed.png | 146.86KB | 44.35KB | ▼ 69.80% |