Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.23MB] [CPU: ▼2.32ms] Passed 4 tests
Analyzing server-side resources used by Social Share for Devs
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.67 ▲0.21 | 45.08 ▲6.92 |
Dashboard /wp-admin | 3.59 ▲0.25 | 48.12 ▼10.74 |
Posts /wp-admin/edit.php | 3.64 ▲0.29 | 50.72 ▲4.80 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.23 | 82.15 ▼7.29 |
Media Library /wp-admin/upload.php | 3.45 ▲0.23 | 38.20 ▲3.94 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 175 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Social Share for Devs: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,842 ▲107 | 13.25 ▼1.33 | 1.75 ▲0.16 | 43.67 ▼6.43 |
Dashboard /wp-admin | 2,251 ▲60 | 5.89 ▲0.98 | 101.46 ▲1.04 | 38.84 ▼9.30 |
Posts /wp-admin/edit.php | 2,134 ▲45 | 2.06 ▲0.06 | 46.01 ▲8.77 | 35.04 ▲1.46 |
Add New Post /wp-admin/post-new.php | 1,543 ▲24 | 23.28 ▲0.50 | 668.29 ▼11.22 | 58.76 ▼6.58 |
Media Library /wp-admin/upload.php | 1,430 ▲42 | 4.21 ▼0.03 | 102.56 ▼6.56 | 48.35 ▲1.34 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 55× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\ResponseInterface' not found in wp-content/plugins/social-share-for-devs/vendor/guzzlehttp/psr7/src/Response.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/social-share-for-devs/templates/admin/input.php:10
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Promise\\RejectionException' not found in wp-content/plugins/social-share-for-devs/vendor/guzzlehttp/promises/src/AggregateException.php:8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/social-share-for-devs/src/Updates.php on line 14
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/social-share-for-devs/vendor/guzzlehttp/promises/src/RejectedPromise.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/social-share-for-devs/vendor/guzzlehttp/psr7/src/PumpStream.php:19
- > PHP Fatal error
Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/social-share-for-devs/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/social-share-for-devs/vendor/guzzlehttp/promises/src/TaskQueue.php:14
- > PHP Fatal error
Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/social-share-for-devs/vendor/guzzlehttp/guzzle/src/Exception/TransferException.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/social-share-for-devs/vendor/guzzlehttp/psr7/src/CachingStream.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: facebook, twitter, instagram, social, sharing
social-share-for-devs/social-share-for-devs.php 92% from 13 tests
Analyzing the main PHP file in "Social Share for Devs" version 1.0.7
It is important to fix the following:
- Requires PHP: Required version does not match the one declared in readme.txt ("7.0" instead of "7.2")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin15,221 lines of code in 162 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 128 | 2,119 | 6,024 | 10,490 |
Markdown | 15 | 1,278 | 0 | 3,664 |
JSON | 9 | 0 | 0 | 1,040 |
SVG | 8 | 0 | 0 | 19 |
YAML | 1 | 0 | 0 | 7 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.03 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 88.00 |
Average method complexity | 2.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 13 | |
Interfaces | 26 | |
Traits | 3 | |
Classes | 82 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 82 | 100.00% |
▷ Final classes | 35 | 42.68% |
Methods | 769 | |
▷ Static methods | 145 | 18.86% |
▷ Public methods | 651 | 84.66% |
▷ Protected methods | 4 | 0.52% |
▷ Private methods | 114 | 14.82% |
Functions | 124 | |
▷ Named functions | 34 | 27.42% |
▷ Anonymous functions | 90 | 72.58% |
Constants | 63 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 63 | 100.00% |
▷ Public constants | 52 | 82.54% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin