Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.00MB] [CPU: ▼8.59ms] Passed 4 tests
This is a short check of server-side resources used by Moloni España
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 35.70 ▼0.57 |
Dashboard /wp-admin | 3.31 ▲0.00 | 44.23 ▼7.89 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 43.45 ▼2.67 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 78.39 ▼23.24 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 34.53 ▲1.13 |
Server storage [IO: ▲0.54MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 99 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Moloni España: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲3 | 14.38 ▼0.14 | 1.51 ▼0.27 | 42.68 ▼2.02 |
Dashboard /wp-admin | 2,198 ▲21 | 5.61 ▲0.02 | 83.95 ▼3.49 | 37.06 ▲0.38 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.02 ▲0.02 | 32.89 ▼19.13 | 33.64 ▼18.87 |
Add New Post /wp-admin/post-new.php | 1,533 ▼4 | 23.13 ▲5.03 | 658.12 ▼4.02 | 58.92 ▼10.42 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.07 | 94.96 ▼0.20 | 41.36 ▼1.47 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
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)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== Moloni España ===
)
moloni-es/moloni_es.php 85% from 13 tests
"Moloni España" version 1.0.51's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("moloni-es.php" instead of "moloni_es.php")
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin8,802 lines of code in 90 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 79 | 1,589 | 2,104 | 8,229 |
CSS | 2 | 33 | 5 | 203 |
Markdown | 1 | 65 | 0 | 191 |
JavaScript | 4 | 44 | 9 | 154 |
JSON | 2 | 0 | 0 | 23 |
SVG | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 11.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 98.00 |
Average method complexity | 2.94 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 11 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 64 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 64 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 352 | |
▷ Static methods | 163 | 46.31% |
▷ Public methods | 265 | 75.28% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 87 | 24.72% |
Functions | 3 | |
▷ Named functions | 2 | 66.67% |
▷ Anonymous functions | 1 | 33.33% |
Constants | 13 | |
▷ Global constants | 7 | 53.85% |
▷ Class constants | 6 | 46.15% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo-white.png | 2.07KB | 1.24KB | ▼ 40.20% |
images/small_logo.png | 0.50KB | 0.37KB | ▼ 24.61% |
images/small_logo3.png | 0.51KB | 0.38KB | ▼ 26.15% |