Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼137.51ms] Passed 4 tests
This is a short check of server-side resources used by Mosh Companion
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 35.73 ▲13.06 |
Dashboard /wp-admin | 3.06 ▲0.01 | 48.59 ▲5.91 |
Posts /wp-admin/edit.php | 3.11 ▲0.01 | 43.27 ▼4.04 |
Add New Post /wp-admin/post-new.php | 5.42 ▼0.01 | 90.92 ▼555.25 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 32.94 ▲3.36 |
Server storage [IO: ▲1.30MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 59 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Mosh Companion: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,721 ▲125 | 15.84 ▲0.31 | 13.18 ▲3.38 | 50.53 ▲2.75 |
Dashboard /wp-admin | 2,985 ▲54 | 5.92 ▼0.17 | 137.44 ▼12.76 | 111.59 ▼4.53 |
Posts /wp-admin/edit.php | 2,759 ▲20 | 2.72 ▲0.01 | 65.47 ▲0.03 | 99.78 ▲16.10 |
Add New Post /wp-admin/post-new.php | 1,883 ▲207 | 19.09 ▲0.22 | 368.01 ▼7.67 | 107.49 ▲5.00 |
Media Library /wp-admin/upload.php | 1,822 ▲15 | 5.02 ▼0.01 | 153.50 ▲4.32 | 119.20 ▼3.19 |
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
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP Passed 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
Congratulations! This plugin passed the SRP test
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Plugin Name: Please specify the plugin name on the first line (
=== mosh-companion ===
)
mosh-companion/mosh-companion.php Passed 13 tests
The principal PHP file in "Mosh Companion" v. 1.0 is loaded by WordPress automatically on each request
45 characters long description:
Mosh Companion is a companion for Mosh theme.
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 plugin13,421 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 990 | 893 | 7,221 |
XML | 1 | 40 | 23 | 3,952 |
CSS | 6 | 3 | 9 | 1,128 |
JavaScript | 12 | 154 | 155 | 757 |
SVG | 1 | 0 | 0 | 362 |
JSON | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 12.92 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 25 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 25 | 100.00% |
▷ Final classes | 1 | 4.00% |
Methods | 157 | |
▷ Static methods | 4 | 2.55% |
▷ Public methods | 114 | 72.61% |
▷ Protected methods | 40 | 25.48% |
▷ Private methods | 3 | 1.91% |
Functions | 14 | |
▷ Named functions | 13 | 92.86% |
▷ Anonymous functions | 1 | 7.14% |
Constants | 9 | |
▷ Global constants | 6 | 66.67% |
▷ Class constants | 3 | 33.33% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.08MB with 0.05MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/demo-data/screen-image.png | 79.92KB | 29.37KB | ▼ 63.25% |