Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.18MB] [CPU: ▼1.56ms] Passed 4 tests
An overview of server-side resources used by Microplugins
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 36.33 ▼5.74 |
Dashboard /wp-admin | 3.47 ▲0.16 | 46.28 ▲0.57 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 49.58 ▲1.61 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 95.15 ▼2.69 |
Media Library /wp-admin/upload.php | 3.38 ▲0.16 | 34.65 ▲2.98 |
Categories /wp-admin/edit-tags.php?taxonomy=microplugin-category&post_type=microplugin | 3.38 | 34.17 |
Add New /wp-admin/post-new.php?post_type=microplugin | 3.47 | 49.52 |
Tags /wp-admin/edit-tags.php?taxonomy=microplugin-tag&post_type=microplugin | 3.38 | 34.32 |
Recompile All /wp-admin/edit.php?post_type=microplugin&page=recompile-all | 3.35 | 31.95 |
All Microplugins /wp-admin/edit.php?post_type=microplugin | 3.43 | 35.84 |
Server storage [IO: ▲1.48MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 52 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Microplugins
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,867 ▲132 | 13.21 ▼1.08 | 4.49 ▲2.56 | 40.84 ▲0.14 |
Dashboard /wp-admin | 2,242 ▲51 | 4.82 ▼0.06 | 116.91 ▲9.62 | 43.96 ▲1.02 |
Posts /wp-admin/edit.php | 2,131 ▲45 | 2.00 ▼0.01 | 40.15 ▼0.76 | 40.30 ▲1.47 |
Add New Post /wp-admin/post-new.php | 1,808 ▲275 | 23.63 ▲0.35 | 617.29 ▲22.27 | 35.20 ▼16.02 |
Media Library /wp-admin/upload.php | 1,421 ▲33 | 4.20 ▲0.09 | 95.73 ▼10.82 | 43.46 ▼5.73 |
Categories /wp-admin/edit-tags.php?taxonomy=microplugin-category&post_type=microplugin | 1,301 | 2.14 | 26.94 | 28.45 |
Add New /wp-admin/post-new.php?post_type=microplugin | 2,129 | 5.24 | 116.86 | 68.74 |
Tags /wp-admin/edit-tags.php?taxonomy=microplugin-tag&post_type=microplugin | 1,270 | 2.14 | 27.79 | 26.39 |
Recompile All /wp-admin/edit.php?post_type=microplugin&page=recompile-all | 801 | 2.03 | 22.37 | 27.63 |
All Microplugins /wp-admin/edit.php?post_type=microplugin | 1,108 | 1.95 | 30.11 | 31.98 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/microplugins/microplugins.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/post-new.php?post_type=microplugin
- > Console-api (warning) in wp-content/plugins/microplugins/assets/vendor/ace/ace.js?ver=6.3.1+0:51505
Automatically scrolling cursor into view after selection change" "this will be disabled in the next version" "set editor.$blockScrolling = Infinity to disable this message
- > GET request to /wp-admin/post-new.php?post_type=microplugin
- > Network (severe)
wp-content/plugins/microplugins/assets/vendor/ace/worker-php.js - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: These screenshots require images: #1 (screenshot-1.png Crear nuevo microplugin.), #2 (screenshot-2.png Múltiples estilos en el editor de código.), #3 (screenshot-3.png Resultado después de publicar la entrada.), #4 (screenshot-4.png Advertencias en el editor de código.), #5 (screenshot-5.png Señalamientos de error en el editor de código y microplugin desactivado automáticamente.)
microplugins/microplugins.php Passed 13 tests
"Microplugins" version 1.1.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
97 characters long description:
Permite añadir funcionalidad al sitio evitando la modificación de los archivos del tema activo.
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
No dangerous file extensions were detected561 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 103 | 195 | 438 |
JavaScript | 37 | 17 | 0 | 104 |
CSS | 1 | 5 | 0 | 19 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 51.00 |
▷ Minimum class complexity | 51.00 |
▷ Maximum class complexity | 51.00 |
Average method complexity | 3.59 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 20 | |
▷ Static methods | 19 | 95.00% |
▷ Public methods | 17 | 85.00% |
▷ Protected methods | 3 | 15.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 5 | |
▷ Global constants | 3 | 60.00% |
▷ Class constants | 2 | 40.00% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
10 PNG files occupy 0.55MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 54.40KB | 29.18KB | ▼ 46.36% |
assets/screenshot-1.png | 52.28KB | 29.53KB | ▼ 43.51% |
screenshot-3.png | 75.52KB | 30.74KB | ▼ 59.29% |
screenshot-2.png | 52.09KB | 29.66KB | ▼ 43.07% |
assets/screenshot-3.png | 75.52KB | 30.74KB | ▼ 59.29% |