Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼268.56ms] Passed 4 tests
This is a short check of server-side resources used by Menuio
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.91 ▲0.19 | 30.24 ▲7.61 |
Dashboard /wp-admin | 3.14 ▲0.09 | 43.76 ▲0.24 |
Posts /wp-admin/edit.php | 3.19 ▲0.08 | 42.75 ▲6.83 |
Add New Post /wp-admin/post-new.php | 5.50 ▲0.07 | 91.75 ▼1,077.87 |
Media Library /wp-admin/upload.php | 3.08 ▲0.08 | 32.92 ▼3.45 |
Server storage [IO: ▲0.64MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by Menuio
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,701 ▲95 | 16.20 ▲0.69 | 8.67 ▼0.61 | 54.31 ▲5.88 |
Dashboard /wp-admin | 2,976 ▲123 | 6.14 ▲0.15 | 134.01 ▼21.56 | 94.87 ▼2.43 |
Posts /wp-admin/edit.php | 2,730 ▲24 | 2.69 ▲0.00 | 64.01 ▼2.95 | 88.95 ▼2.86 |
Add New Post /wp-admin/post-new.php | 1,870 ▲19 | 19.06 ▲1.57 | 361.16 ▲2.51 | 104.86 ▼6.19 |
Media Library /wp-admin/upload.php | 1,796 ▲24 | 5.00 ▲0.03 | 144.78 ▼14.80 | 114.13 ▼9.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled successfully, without leaving any zombie files or tables
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
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× 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/menuio/menuio.php:20
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Screenshots: These screenshots require images: #1 (screenshot of administration), #2 (screenshot of posts with plugin activated)
menuio/menuio.php Passed 13 tests
"Menuio" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
40 characters long description:
Plugin for sharing posts to social sites
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin557 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 17 | 12 | 244 |
CSS | 1 | 3 | 1 | 237 |
JavaScript | 1 | 11 | 0 | 76 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.08 |
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 | 13 | |
▷ Named functions | 13 | 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 0% from 1 test
Image compression 0% from 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
40 PNG files occupy 0.62MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/default-f.png | 1.74KB | 1.60KB | ▼ 8.30% |
img/round2-p.png | 44.98KB | 15.04KB | ▼ 66.57% |
img/brush-t.png | 2.35KB | 2.02KB | ▼ 14.13% |
assets/Screenshot-1.png | 68.37KB | 15.36KB | ▼ 77.54% |
img/default-i.png | 2.54KB | 2.19KB | ▼ 13.65% |