Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼1.92MB] [CPU: ▼51.95ms] Passed 4 tests
Server-side resources used by Ss share
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.79 ▼36.71 |
Dashboard /wp-admin | 2.09 ▼1.21 | 5.75 ▼42.34 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 7.65 ▼35.69 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.79 | 7.10 ▼93.05 |
Media Library /wp-admin/upload.php | 2.09 ▼1.13 | 5.22 ▼28.96 |
Server storage [IO: ▲0.03MB] [DB: ▲0.33MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
ss-share |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Ss share
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲132 | 13.20 ▼1.18 | 1.95 ▼0.17 | 38.63 ▼4.46 |
Dashboard /wp-admin | 2,229 ▲40 | 5.86 ▲1.00 | 109.51 ▼12.91 | 84.19 ▲40.41 |
Posts /wp-admin/edit.php | 2,127 ▲38 | 2.01 ▼0.03 | 38.36 ▲4.29 | 35.42 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,547 ▲5 | 17.52 ▼0.56 | 703.63 ▲103.18 | 54.08 ▼3.58 |
Media Library /wp-admin/upload.php | 1,426 ▲38 | 4.11 ▼0.06 | 118.54 ▲25.10 | 43.85 ▲2.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.33MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall without warnings or errors
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the ss-share-admin-styles handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- 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
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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 fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ss-share/modules/admin/views/main.php
- > /wp-content/plugins/ss-share/modules/front/views/after-content.php
- 27× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Warning
Use of undefined constant SS_SHARE_TEXT_DOMAIN - assumed 'SS_SHARE_TEXT_DOMAIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/ss-share/modules/front/views/right.php on line 13
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/ss-share/modules/admin/views/main.php on line 60
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/ss-share/modules/front/views/left.php:14
- > PHP Warning
Use of undefined constant SS_SHARE_TEXT_DOMAIN - assumed 'SS_SHARE_TEXT_DOMAIN' (this will throw an Error in a future version of PHP) in wp-content/plugins/ss-share/modules/front/views/after-content.php on line 13
- > PHP Notice
Undefined variable: params in wp-content/plugins/ss-share/modules/admin/views/main.php on line 60
- > PHP Notice
Undefined variable: params in wp-content/plugins/ss-share/modules/admin/views/main.php on line 76
- > PHP Fatal error
Uncaught Error: Class 'ssShare\\modules\\common\\BaseModel' not found in wp-content/plugins/ss-share/modules/admin/AdminModel.php:8
- > PHP Notice
Undefined variable: params in wp-content/plugins/ss-share/modules/admin/views/main.php on line 11
- > PHP Notice
Undefined variable: params in wp-content/plugins/ss-share/modules/front/views/after-content.php on line 14
- > PHP Notice
Undefined variable: params in wp-content/plugins/ss-share/modules/admin/views/main.php on line 28
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please a description for screenshot #0 in ss-share/assets to your readme.txt
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== ss-share ===
) - Screenshots: Please add an image for screenshot #1 (This is the first screen shot)
ss-share/index.php 92% from 13 tests
"Ss share" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ss-share.php" instead of "index.php")
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
No dangerous file extensions were detected661 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 102 | 23 | 503 |
SVG | 7 | 6 | 0 | 86 |
CSS | 2 | 17 | 0 | 72 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 5.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 20.00 |
Average method complexity | 2.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 22 | 73.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 26.67% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 4 | 30.77% |
▷ Class constants | 9 | 69.23% |
▷ Public constants | 9 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
WP/assets/icon-128x128.png | 1.04KB | 0.54KB | ▼ 47.92% |