Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.96ms] Passed 4 tests
A check of server-side resources used by Social Plugin - Metadata
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.19 | 41.20 ▲0.87 |
Dashboard /wp-admin | 3.49 ▲0.18 | 47.37 ▼3.22 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 43.36 ▼6.00 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 92.76 ▲7.25 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 34.15 ▲0.52 |
Social Plugin - Metadata /wp-admin/tools.php?page=social-plugin-metadata-plugin | 3.38 | 36.81 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_social-plugin-metadata-widget |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Social Plugin - Metadata
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.70 ▼0.72 | 1.71 ▼0.12 | 48.44 ▲3.56 |
Dashboard /wp-admin | 2,210 ▲25 | 5.09 ▲0.22 | 107.13 ▼12.98 | 37.25 ▼14.14 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.04 | 38.75 ▲1.95 | 32.12 ▼1.52 |
Add New Post /wp-admin/post-new.php | 1,545 ▲24 | 18.17 ▼5.12 | 619.99 ▼107.26 | 54.60 ▼4.58 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.19 ▲0.02 | 96.18 ▼3.53 | 43.43 ▼1.18 |
Social Plugin - Metadata /wp-admin/tools.php?page=social-plugin-metadata-plugin | 914 | 2.49 | 64.46 | 30.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_social-plugin-metadata-widget
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/social-page-metadata/social-plugin-metadata.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-page-metadata/widget.php:8
- > PHP Fatal error
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 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: facebook, show, page info, meta data
social-page-metadata/social-plugin-metadata.php 85% from 13 tests
The main file in "Social Plugin - Metadata" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("social-page-metadata.php" instead of "social-plugin-metadata.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin835 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 137 | 97 | 606 |
JavaScript | 2 | 27 | 1 | 114 |
PO File | 1 | 30 | 0 | 75 |
CSS | 1 | 4 | 3 | 20 |
XML | 1 | 1 | 1 | 20 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 22.67 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 1 | 33.33% |
▷ Concrete classes | 2 | 66.67% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 1 | 3.45% |
▷ Public methods | 25 | 86.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 13.79% |
Functions | 10 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 10 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin