Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.33MB] [CPU: ▼1.03ms] Passed 4 tests
A check of server-side resources used by WP Social Preview
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 52.59 ▲7.60 |
Dashboard /wp-admin | 3.71 ▲0.40 | 72.08 ▲12.80 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 49.43 ▼6.75 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.29 | 93.08 ▼7.40 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 44.21 ▲2.43 |
WP Social Preview /wp-admin/options-general.php?page=wp_social_preview | 3.58 | 42.55 |
Server storage [IO: ▲0.61MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 210 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by WP Social Preview
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲48 | 14.35 ▼0.04 | 2.34 ▲0.44 | 48.94 ▲0.48 |
Dashboard /wp-admin | 2,202 ▲22 | 5.66 ▲0.04 | 87.44 ▼9.94 | 42.89 ▼4.02 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 1.95 ▼0.02 | 36.51 ▼3.12 | 37.23 ▲3.08 |
Add New Post /wp-admin/post-new.php | 1,902 ▲376 | 25.19 ▲2.36 | 710.60 ▲15.96 | 49.27 ▼0.08 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▲0.02 | 104.37 ▼1.55 | 44.25 ▼2.53 |
WP Social Preview /wp-admin/options-general.php?page=wp_social_preview | 1,290 | 3.39 | 64.68 | 35.57 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- 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)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 136× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/wp-social-preview/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\AbstractDriver' not found in wp-content/plugins/wp-social-preview/vendor/intervention/image/src/Intervention/Image/Gd/Driver.php:8
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/wp-social-preview/vendor/intervention/image/src/Intervention/Image/Commands/IptcCommand.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-social-preview/vendor/guzzlehttp/psr7/src/AppendStream.php:11
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/wp-social-preview/vendor/intervention/image/src/Intervention/Image/Gd/Commands/BackupCommand.php:7
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Gd\\Commands\\ResizeCommand' not found in wp-content/plugins/wp-social-preview/vendor/intervention/image/src/Intervention/Image/Gd/Commands/HeightenCommand.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/wp-social-preview/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Class 'Illuminate\\Support\\ServiceProvider' not found in wp-content/plugins/wp-social-preview/vendor/intervention/image/src/Intervention/Image/ImageServiceProviderLumen.php:7
- > PHP Fatal error
Uncaught Error: Class 'Intervention\\Image\\Commands\\AbstractCommand' not found in wp-content/plugins/wp-social-preview/vendor/intervention/image/src/Intervention/Image/Gd/Commands/PixelateCommand.php:7
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wp-social-preview/vendor/guzzlehttp/psr7/src/DroppingStream.php:10
- > 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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: social, twitter card, social image, open graph, social sharing
wp-social-preview/wp-social-preview.php Passed 13 tests
The main PHP file in "WP Social Preview" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
89 characters long description:
Previewing and manage how your content will look on social media sites before sharing it.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin11,076 lines of code in 204 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 180 | 2,491 | 5,485 | 9,241 |
Markdown | 5 | 399 | 0 | 668 |
JSON | 8 | 0 | 0 | 448 |
JavaScript | 8 | 25 | 15 | 400 |
CSS | 3 | 43 | 0 | 319 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 6.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 8 | |
Traits | 2 | |
Classes | 156 | |
▷ Abstract classes | 8 | 5.13% |
▷ Concrete classes | 148 | 94.87% |
▷ Final classes | 3 | 2.03% |
Methods | 762 | |
▷ Static methods | 42 | 5.51% |
▷ Public methods | 641 | 84.12% |
▷ Protected methods | 54 | 7.09% |
▷ Private methods | 67 | 8.79% |
Functions | 51 | |
▷ Named functions | 28 | 54.90% |
▷ Anonymous functions | 23 | 45.10% |
Constants | 17 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 17 | 100.00% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin