Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼144.61ms] Passed 4 tests
An overview of server-side resources used by WP ShareX
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.04 ▲0.20 | 35.61 ▲0.43 |
Dashboard /wp-admin | 3.26 ▲0.20 | 48.74 ▼0.56 |
Posts /wp-admin/edit.php | 3.31 ▲0.20 | 45.39 ▲0.47 |
Add New Post /wp-admin/post-new.php | 5.62 ▲0.19 | 86.62 ▼578.45 |
Media Library /wp-admin/upload.php | 3.20 ▲0.20 | 32.06 ▲0.15 |
Server storage [IO: ▲2.59MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 57 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WP ShareX
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,746 ▲174 | 16.46 ▲0.85 | 11.35 ▲1.14 | 45.99 ▼2.35 |
Dashboard /wp-admin | 2,991 ▲60 | 5.97 ▼0.02 | 139.77 ▼23.99 | 134.64 ▲23.36 |
Posts /wp-admin/edit.php | 2,775 ▲36 | 2.65 ▼0.06 | 72.13 ▲4.43 | 90.65 ▲1.76 |
Add New Post /wp-admin/post-new.php | 1,637 ▼46 | 21.47 ▲2.75 | 307.77 ▼70.77 | 107.65 ▼3.42 |
Media Library /wp-admin/upload.php | 1,777 ▼33 | 5.08 ▲0.04 | 138.31 ▼19.93 | 142.49 ▲25.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sharex/joomdev-wss-functions.php:68
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-sharex/joomdev-wss-functions.php:68
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Click here to select networks), #2 (Update networks after selecting them.), #3 (Setup plugin and api settings.), #4 (Select any design to display the buttons.), #5 (For mobile)
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-sharex ===
)
wp-sharex/joomdev-wp-social-share.php 85% from 13 tests
The main PHP script in "WP ShareX" version 1.0.0 is automatically included on every request by WordPress
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 205 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-sharex.php" instead of "joomdev-wp-social-share.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected12,450 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 448 | 213 | 4,685 |
SVG | 2 | 0 | 0 | 2,772 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP | 4 | 184 | 161 | 1,373 |
JavaScript | 2 | 22 | 1 | 94 |
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.37 |
Average class complexity | 7.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.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 | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 1.02MB with 0.64MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 186.04KB | 49.29KB | ▼ 73.50% |
screenshot-5.png | 186.49KB | 50.05KB | ▼ 73.16% |
screenshot-3.png | 252.73KB | 68.18KB | ▼ 73.02% |
assets/img/curved-arrow-red.png | 2.30KB | 1.76KB | ▼ 23.41% |
screenshot-1.png | 158.30KB | 44.33KB | ▼ 72.00% |