Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.91ms] Passed 4 tests
This is a short check of server-side resources used by Plugna - Fun & Easy Plugin Manager
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 37.41 ▼1.46 |
Dashboard /wp-admin | 3.33 ▲0.02 | 52.72 ▲1.36 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.23 ▲3.73 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.55 ▼2.11 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.26 ▼1.41 |
Server storage [IO: ▲1.53MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Plugna - Fun & Easy Plugin Manager
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,796 ▲50 | 13.22 ▼1.50 | 1.75 ▲0.18 | 43.13 ▲0.57 |
Dashboard /wp-admin | 2,205 ▲14 | 5.86 ▲0.97 | 117.08 ▲13.55 | 69.68 ▲25.98 |
Posts /wp-admin/edit.php | 2,088 ▲2 | 1.98 ▼0.08 | 36.29 ▲1.43 | 32.32 ▼5.95 |
Add New Post /wp-admin/post-new.php | 1,510 ▼23 | 17.47 ▼5.55 | 757.48 ▲60.90 | 61.63 ▼6.17 |
Media Library /wp-admin/upload.php | 1,381 ▼7 | 4.07 ▼0.11 | 97.58 ▼10.85 | 79.28 ▲34.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 7× PHP files output text when accessed directly:
- > /wp-content/plugins/plugna/src/PlugnaApi.php
- > /wp-content/plugins/plugna/plugin.php
- > /wp-content/plugins/plugna/settings.php
- > /wp-content/plugins/plugna/src/data/PlugnaPlugins.php
- > /wp-content/plugins/plugna/src/data/PlugnaPlugin.php
- > /wp-content/plugins/plugna/src/Plugna.php
- > /wp-content/plugins/plugna/src/data/PlugnaSettings.php
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)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 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
Attributes that require attention:
- Screenshots: Screenshot #1 (Plugna plugin) image required
plugna/plugin.php 85% from 13 tests
"Plugna - Fun & Easy Plugin Manager" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Main file name: Name the main plugin file the same as the plugin slug ("plugna.php" instead of "plugin.php")
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 plugin30,087 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 7,037 | 5,649 | 27,875 |
CSS | 1 | 20 | 7 | 1,425 |
PHP | 7 | 128 | 177 | 680 |
SVG | 20 | 1 | 0 | 107 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 10.60 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 1.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 8 | 13.33% |
▷ Public methods | 45 | 75.00% |
▷ Protected methods | 15 | 25.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 10 | |
▷ Global constants | 2 | 20.00% |
▷ Class constants | 8 | 80.00% |
▷ Public constants | 8 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
resources/images/plugin-blank.png | 45.40KB | 5.21KB | ▼ 88.52% |