Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼140.12ms] Passed 4 tests
An overview of server-side resources used by Share Line
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 34.44 ▲13.88 |
Dashboard /wp-admin | 3.07 ▲0.01 | 45.45 ▲0.79 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 44.73 ▼0.85 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.00 | 88.45 ▼552.32 |
Media Library /wp-admin/upload.php | 3.01 ▲0.00 | 30.50 ▼8.08 |
Share Line /wp-admin/options-general.php?page=share_line_plugin | 2.96 | 31.16 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 24 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Share Line
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,686 ▲49 | 15.79 ▲0.25 | 9.57 ▼1.17 | 49.66 ▲2.64 |
Dashboard /wp-admin | 2,974 ▲46 | 5.85 ▼0.31 | 137.17 ▼1.14 | 115.62 ▲4.70 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.70 ▼0.01 | 64.46 ▲4.61 | 87.38 ▼7.90 |
Add New Post /wp-admin/post-new.php | 1,677 ▼5 | 18.87 ▼0.12 | 376.82 ▼4.20 | 104.05 ▼13.35 |
Media Library /wp-admin/upload.php | 1,820 ▲10 | 5.01 ▼0.03 | 147.69 ▼18.99 | 122.95 ▼6.25 |
Share Line /wp-admin/options-general.php?page=share_line_plugin | 1,191 | 2.10 | 49.68 | 77.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=share_line_plugin
- > Notice in wp-content/plugins/share-line-button/share-line.php+112
Trying to access array offset on value of type bool
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 take a closer look at the following
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/share-line-button/views/index.php
- > /wp-content/plugins/share-line-button/trunk/views/index.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/share-line-button/trunk/share-line.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/share-line-button/share-line.php:22
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== share-line-button ===
)
share-line-button/share-line.php 85% from 13 tests
"Share Line" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time 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
- Main file name: The principal plugin file should be the same as the plugin slug ("share-line-button.php" instead of "share-line.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected135 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 46 | 27 | 124 |
CSS | 1 | 2 | 0 | 11 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.26MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
trunk/images/linebutton_36x60_en.png | 3.33KB | 2.12KB | ▼ 36.41% |
assets/screenshot-2.png | 43.39KB | 10.57KB | ▼ 75.65% |
trunk/assets/screenshot-1.png | 77.45KB | 19.45KB | ▼ 74.89% |
trunk/images/linebutton_20x20_en.png | 1.18KB | 0.83KB | ▼ 29.61% |
images/linebutton_36x60_en.png | 3.33KB | 2.12KB | ▼ 36.41% |