Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼2.76ms] Passed 4 tests
A check of server-side resources used by WP Custom Social Sharing
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 44.36 ▲0.43 |
Dashboard /wp-admin | 3.33 ▼0.02 | 54.05 ▼11.17 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.71 ▲3.03 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 100.93 ▼0.63 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 39.96 ▲0.32 |
Social Sharing /wp-admin/options-general.php?page=wcss-social-share | 3.53 | 43.54 |
Server storage [IO: ▲4.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 31 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
wcss_settings_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Custom Social Sharing
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,152 ▲391 | 14.92 ▲0.72 | 5.75 ▲3.76 | 51.22 ▲2.69 |
Dashboard /wp-admin | 2,259 ▲62 | 6.15 ▲0.34 | 110.84 ▲1.69 | 38.32 ▼8.32 |
Posts /wp-admin/edit.php | 2,124 ▲27 | 2.88 ▲0.90 | 49.56 ▲10.39 | 34.04 ▼0.44 |
Add New Post /wp-admin/post-new.php | 1,557 ▲26 | 24.01 ▲0.71 | 682.77 ▼11.09 | 34.83 ▼30.39 |
Media Library /wp-admin/upload.php | 1,444 ▲47 | 5.42 ▲1.14 | 117.14 ▲0.43 | 45.42 ▼7.04 |
Social Sharing /wp-admin/options-general.php?page=wcss-social-share | 2,007 | 3.32 | 56.93 | 95.64 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- wcss_settings_options
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-custom-social-sharing/templates/admin-settings-page.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=wcss-social-share
- > Network (severe)
wp-content/plugins/wp-custom-social-sharing/assets/images/logov2.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-custom-social-sharing/wp-custom-social-sharing.php 85% from 13 tests
The main file in "WP Custom Social Sharing" v. 2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 204 characters long)
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,395 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 4 | 0 | 0 | 12,223 |
PHP | 4 | 330 | 113 | 1,584 |
CSS | 3 | 409 | 161 | 1,516 |
JavaScript | 2 | 22 | 4 | 72 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.49 |
Average class complexity | 50.50 |
▷ Minimum class complexity | 27.00 |
▷ Maximum class complexity | 74.00 |
Average method complexity | 5.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 38.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected