Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▼0.01MB] [CPU: ▼13.06ms] Passed 4 tests
This is a short check of server-side resources used by Moloni
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 33.79 ▼12.16 |
Dashboard /wp-admin | 3.31 ▼0.04 | 46.75 ▼19.51 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.55 ▼4.24 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 83.01 ▼16.33 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 32.14 ▲0.26 |
Server storage [IO: ▲4.85MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 190 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Moloni
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲43 | 14.21 ▼0.12 | 1.57 ▼0.62 | 37.03 ▼6.27 |
Dashboard /wp-admin | 2,195 ▲18 | 5.82 ▲0.16 | 90.65 ▼8.47 | 43.93 ▲0.81 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.00 ▼0.02 | 39.39 ▲0.48 | 36.25 ▼0.59 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 23.67 ▲0.07 | 584.01 ▼107.59 | 45.21 ▼13.91 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.25 ▲0.05 | 94.09 ▼22.83 | 41.62 ▼8.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 20× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Moloni\\Exceptions\\Core\\MoloniException' not found in wp-content/plugins/moloni/src/Exceptions/HelperException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Moloni\\Exceptions\\Core\\MoloniException' not found in wp-content/plugins/moloni/src/Exceptions/ServiceException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Moloni\\Services\\Mails\\Abstracts\\MailAbstract' not found in wp-content/plugins/moloni/src/Services/Mails/DocumentWarning.php:7
- > PHP Fatal error
Trait 'Moloni\\Traits\\DocumentTypeTrait' not found in wp-content/plugins/moloni/src/Services/Documents/OpenDocument.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'Moloni\\Exceptions\\Core\\MoloniException' not found in wp-content/plugins/moloni/src/Exceptions/GenericException.php:7
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/moloni/vendor/psr/log/Psr/Log/Test/TestLogger.php:57
- > PHP Fatal error
Trait 'Moloni\\Traits\\DocumentTypeTrait' not found in wp-content/plugins/moloni/src/Hooks/OrderDetails.php on line 16
- > PHP Fatal error
Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/moloni/src/Helpers/Logger.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/moloni/src/Templates/Modals/PendingOrders/BulkActionModal.php:3
- > PHP Fatal error
Uncaught Error: Class 'Moloni\\Exceptions\\Core\\MoloniException' not found in wp-content/plugins/moloni/src/Exceptions/DocumentWarning.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== Moloni===
)
moloni/moloni.php Passed 13 tests
The main PHP file in "Moloni" ver. 4.4.7 adds more information about the plugin and also serves as the entry point for this plugin
69 characters long description:
A forma mais fácil de ligar a sua loja online com a sua faturação.
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
No dangerous file extensions were detected21,617 lines of code in 127 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 105 | 1,992 | 2,472 | 8,288 |
CSS | 5 | 1,360 | 540 | 6,889 |
JavaScript | 7 | 1,343 | 1,102 | 4,879 |
SVG | 3 | 0 | 0 | 771 |
Markdown | 3 | 130 | 0 | 393 |
HTML | 1 | 43 | 3 | 289 |
JSON | 3 | 0 | 0 | 108 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 11.51 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 20 | |
Interfaces | 2 | |
Traits | 3 | |
Classes | 76 | |
▷ Abstract classes | 2 | 2.63% |
▷ Concrete classes | 74 | 97.37% |
▷ Final classes | 0 | 0.00% |
Methods | 423 | |
▷ Static methods | 97 | 22.93% |
▷ Public methods | 297 | 70.21% |
▷ Protected methods | 11 | 2.60% |
▷ Private methods | 115 | 27.19% |
Functions | 6 | |
▷ Named functions | 2 | 33.33% |
▷ Anonymous functions | 4 | 66.67% |
Constants | 50 | |
▷ Global constants | 7 | 14.00% |
▷ Class constants | 43 | 86.00% |
▷ Public constants | 43 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 0.22MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
docs/web/images/tut/05.png | 31.77KB | 16.45KB | ▼ 48.22% |
docs/web/images/tut/04.png | 20.79KB | 8.42KB | ▼ 59.47% |
images/small_logo.png | 0.50KB | 0.37KB | ▼ 24.61% |
docs/web/images/tut/01.png | 37.05KB | 14.10KB | ▼ 61.95% |
docs/web/images/tut/03.png | 28.68KB | 18.69KB | ▼ 34.81% |