Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼6.57ms] Passed 4 tests
Analyzing server-side resources used by Start Simple Share
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.21 ▼7.64 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.69 ▼1.93 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 40.53 ▼4.11 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 79.36 ▼12.61 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 37.16 ▲4.27 |
Server storage [IO: ▲0.82MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
_msbd_sssp_options |
Browser metrics Passed 4 tests
A check of browser resources used by Start Simple Share
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲73 | 13.35 ▼1.03 | 1.69 ▼0.33 | 39.68 ▼3.65 |
Dashboard /wp-admin | 2,224 ▲33 | 5.79 ▲0.72 | 99.00 ▼6.68 | 82.20 ▲43.46 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.02 ▲0.00 | 35.44 ▼1.72 | 32.48 ▼1.63 |
Add New Post /wp-admin/post-new.php | 1,682 ▲149 | 22.39 ▼0.80 | 747.46 ▲142.44 | 56.66 ▲2.62 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.12 ▼0.11 | 104.91 ▲5.63 | 43.54 ▲1.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- _msbd_sssp_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/start-simple-share/libs/sssp_buttons.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/start-simple-share/main.php:13
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: share url, share pages, share website, share articles, twitter share...
start-simple-share/main.php 85% from 13 tests
The primary PHP file in "Start Simple Share" version 0.0.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("start-simple-share.php" instead of "main.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin5,803 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 0 | 12 | 1,666 |
Sass | 15 | 100 | 25 | 1,502 |
LESS | 13 | 23 | 33 | 1,247 |
PHP | 7 | 422 | 237 | 851 |
SVG | 1 | 0 | 0 | 520 |
Ruby | 1 | 0 | 0 | 9 |
JavaScript | 2 | 8 | 0 | 8 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 11.75 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 25 | |
▷ Static methods | 7 | 28.00% |
▷ Public methods | 25 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/msbd_logo.png | 28.81KB | 9.10KB | ▼ 68.41% |
images/msbd_favicon_32.png | 1.12KB | 1.20KB | 0.00% |
images/msbd_favicon_16.png | 0.61KB | 0.63KB | 0.00% |