Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼302.86ms] Passed 4 tests
Analyzing server-side resources used by Social Media Share Buttons and Link Shortener 4eq
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.01 | 60.13 ▼18.86 |
Dashboard /wp-admin | 3.41 ▲0.01 | 34.23 ▲0.87 |
Posts /wp-admin/edit.php | 3.64 ▲0.01 | 37.59 ▼3.72 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.08 | 89.41 ▼1,185.44 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 24.06 ▼3.43 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Media Share Buttons and Link Shortener 4eq
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,801 ▲79 | 15.66 ▲0.50 | 5.79 ▼0.12 | 3.10 ▲0.91 |
Dashboard /wp-admin | 2,898 ▲40 | 6.08 ▼0.12 | 116.17 ▼13.90 | 197.58 ▲37.43 |
Posts /wp-admin/edit.php | 2,705 ▲11 | 3.23 ▼0.01 | 71.10 ▲7.02 | 145.04 ▲3.32 |
Add New Post /wp-admin/post-new.php | 1,786 ▲75 | 21.45 ▲0.17 | 450.49 ▲3.65 | 194.68 ▲6.86 |
Media Library /wp-admin/upload.php | 1,721 ▲20 | 5.53 ▼0.00 | 141.63 ▲0.51 | 241.29 ▲14.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-share-buttons-and-link-shortener-4eq/saeedshare.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: share buttons, link shortener, social media
social-media-share-buttons-and-link-shortener-4eq/saeedshare.php 77% from 13 tests
The principal PHP file in "Social Media Share Buttons and Link Shortener 4eq" v. 1.0*/... is loaded by WordPress automatically on each request
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 149 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("social-media-share-buttons-and-link-shortener-4eq.php" instead of "saeedshare.php")
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "1.0*/...")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin148 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 11 | 0 | 70 |
PHP | 1 | 7 | 7 | 67 |
JavaScript | 1 | 2 | 0 | 11 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.04 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.11MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 44.48KB | 30.79KB | ▼ 30.78% |
screenshot-2.png | 67.32KB | 34.79KB | ▼ 48.33% |