Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.26MB] [CPU: ▼315.16ms] Passed 4 tests
This is a short check of server-side resources used by Advance Social Sharer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.04 | 43.97 ▼3.43 |
Dashboard /wp-admin | 3.50 ▲0.10 | 32.39 ▼0.78 |
Posts /wp-admin/edit.php | 3.73 ▲0.09 | 41.17 ▲5.67 |
Add New Post /wp-admin/post-new.php | 5.73 ▼1.24 | 58.94 ▼1,246.51 |
Media Library /wp-admin/upload.php | 3.38 ▲0.08 | 23.17 ▼9.90 |
Server storage [IO: ▲0.39MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 11 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advance Social Sharer
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲43 | 15.89 ▲0.20 | 5.51 ▼0.32 | 2.14 ▼0.78 |
Dashboard /wp-admin | 2,913 ▲52 | 6.02 ▼0.11 | 116.28 ▼21.43 | 177.22 ▲18.95 |
Posts /wp-admin/edit.php | 2,709 ▲18 | 3.26 ▲0.02 | 65.75 ▲3.92 | 135.17 ▼7.69 |
Add New Post /wp-admin/post-new.php | 1,683 ▼90 | 18.89 ▼2.20 | 403.43 ▼33.70 | 182.68 ▲27.45 |
Media Library /wp-admin/upload.php | 1,717 ▲19 | 5.53 ▲0.08 | 123.26 ▼18.95 | 198.83 ▲9.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at 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/advance-social-sharer/advance-social-sharer.php:615
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% 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
These attributes need your attention:
- Donate link: Invalid URI ("")
- Tags: Please delete some tags, you are using 12 tag instead of maximum 10
- Plugin Name: You should set the name of your plugin on the first line (
=== advance-social-sharer ===
)
advance-social-sharer/advance-social-sharer.php Passed 13 tests
This is the main PHP file of "Advance Social Sharer" version 2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
36 characters long description:
Add Social buttons in to your posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin536 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 93 | 52 | 496 |
CSS | 1 | 2 | 0 | 40 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
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 | 14 | |
▷ Named functions | 14 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.36MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 101.83KB | 55.20KB | ▼ 45.79% |
images/icon_small.png | 0.84KB | 0.98KB | 0.00% |
images/icon.png | 2.46KB | 1.76KB | ▼ 28.45% |
screenshot-2.png | 32.90KB | 14.42KB | ▼ 56.16% |
screenshot-4.png | 102.55KB | 55.74KB | ▼ 45.65% |