Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.31ms] Passed 4 tests
Analyzing server-side resources used by InstaShare Social Sharing
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 42.60 ▼2.71 |
Dashboard /wp-admin | 3.36 ▲0.01 | 54.04 ▼7.92 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 51.84 ▲3.21 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 85.87 ▼20.19 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.04 ▼2.43 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
InstaShare Social Sharing: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,916 ▲170 | 13.70 ▼0.49 | 5.81 ▲3.75 | 43.40 ▲0.67 |
Dashboard /wp-admin | 2,207 ▲19 | 5.77 ▲0.88 | 102.55 ▼0.68 | 38.04 ▼0.24 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.03 | 35.96 ▼8.32 | 32.36 ▼5.09 |
Add New Post /wp-admin/post-new.php | 1,518 ▼10 | 23.43 ▲0.11 | 643.31 ▲25.78 | 49.35 ▼12.36 |
Media Library /wp-admin/upload.php | 1,392 ▲7 | 4.31 ▲0.14 | 101.84 ▲0.26 | 45.66 ▲0.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
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 fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/instashare/public/partials/instashare-public-display.php
- > /wp-content/plugins/instashare/admin/partials/instashare-admin-display.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
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: social, sharing
instashare/instashare.php Passed 13 tests
"InstaShare Social Sharing" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
135 characters long description:
This plugin adds Social Sharing buttons to the bottom of content in pages and posts, so your visitors can share your website's content.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected293 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 128 | 547 | 208 |
CSS | 2 | 16 | 8 | 61 |
Markdown | 1 | 14 | 0 | 18 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 2.14 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 6.00 |
Average method complexity | 1.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin