Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.41MB] [CPU: ▲1.88ms] Passed 4 tests
Analyzing server-side resources used by Contasimple
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.91 ▲1.44 | 43.58 ▲2.05 |
Dashboard /wp-admin | 4.76 ▲1.42 | 51.23 ▼9.73 |
Posts /wp-admin/edit.php | 4.81 ▲1.46 | 52.19 ▲3.89 |
Add New Post /wp-admin/post-new.php | 7.28 ▲1.39 | 102.11 ▲14.07 |
Media Library /wp-admin/upload.php | 4.62 ▲1.39 | 45.94 ▲11.31 |
Server storage [IO: ▲2.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 126 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Contasimple
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,792 ▲46 | 14.67 ▲0.06 | 1.73 ▼0.07 | 40.25 ▼2.95 |
Dashboard /wp-admin | 2,201 ▲24 | 5.61 ▲0.00 | 90.46 ▲1.56 | 39.28 ▼1.15 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.01 ▲0.04 | 36.53 ▼0.74 | 38.73 ▲2.85 |
Add New Post /wp-admin/post-new.php | 1,538 ▲7 | 18.21 ▼4.90 | 621.30 ▼43.86 | 65.62 ▲18.31 |
Media Library /wp-admin/upload.php | 1,397 ▼0 | 4.21 ▼0.02 | 99.41 ▲0.15 | 43.26 ▲2.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- 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 0% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/contasimple/public/partials/plugin-name-public-display.php
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/contasimple/lib/Tests/OperationTypeTest.php:11
- > PHP Fatal error
Uncaught Error: Class 'Contasimple\\Swagger\\Client\\Configuration' not found in wp-content/plugins/contasimple/includes/common/CSConfig.php:53
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
contasimple/contasimple.php Passed 13 tests
The primary PHP file in "Contasimple" version 1.27.0 is used by WordPress to initiate all plugin functionality
76 characters long description:
This plugin allows you to generate invoices for all your WooCommerce orders.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected30,332 lines of code in 106 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 95 | 4,953 | 15,302 | 22,707 |
CSS | 2 | 44 | 134 | 5,417 |
PO File | 1 | 291 | 383 | 1,185 |
JavaScript | 4 | 133 | 38 | 690 |
SVG | 2 | 0 | 0 | 326 |
JSON | 1 | 0 | 0 | 5 |
Bourne Shell | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 36.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 490.00 |
Average method complexity | 2.65 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 67.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 79 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 79 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 1,738 | |
▷ Static methods | 243 | 13.98% |
▷ Public methods | 1,706 | 98.16% |
▷ Protected methods | 13 | 0.75% |
▷ Private methods | 19 | 1.09% |
Functions | 11 | |
▷ Named functions | 8 | 72.73% |
▷ Anonymous functions | 3 | 27.27% |
Constants | 324 | |
▷ Global constants | 13 | 4.01% |
▷ Class constants | 311 | 95.99% |
▷ Public constants | 311 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin