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.24MB] [CPU: ▼0.16ms] Passed 4 tests
A check of server-side resources used by Účto+ Invoices
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 44.33 ▲4.49 |
Dashboard /wp-admin | 3.55 ▲0.24 | 44.98 ▼5.28 |
Posts /wp-admin/edit.php | 3.66 ▲0.30 | 47.67 ▲1.72 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 95.16 ▲0.99 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 37.57 ▲1.93 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
uctoplus_options |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Účto+ Invoices
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲80 | 14.32 ▼0.08 | 1.67 ▼0.06 | 43.41 ▼0.65 |
Dashboard /wp-admin | 2,226 ▲46 | 5.58 ▼0.01 | 90.17 ▼4.63 | 68.07 ▲25.45 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 1.99 ▲0.03 | 38.65 ▲1.89 | 34.24 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,584 ▲58 | 25.08 ▲1.29 | 710.11 ▲6.50 | 69.23 ▲4.10 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.12 ▼0.09 | 99.93 ▼5.44 | 74.71 ▲27.54 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- uctoplus_options
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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/ucto-invoices/uctoplus-invoices.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'BaseUctoplusAPI' not found in wp-content/plugins/ucto-invoices/classes/UctoplusDials.php:9
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/ucto-invoices/classes/class.uctoplusInvoicesProcess.php on line 8
- > PHP Fatal error
Uncaught Error: Class 'BaseUctoplusAPI' not found in wp-content/plugins/ucto-invoices/classes/UctoplusInvoice.php:9
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/file.php): failed to open stream: No such file or directory in wp-content/plugins/ucto-invoices/classes/class.uctoplusInvoicesProcess.php on line 8
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/file.php' (include_path='.:/usr/share/php') in wp-content/plugins/ucto-invoices/classes/class.uctoplusInvoicesProcess.php on line 8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
- Contributors: The plugin contributors field is missing
ucto-invoices/uctoplus-invoices.php 85% from 13 tests
Analyzing the main PHP file in "Účto+ Invoices" version 1.2.4
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("ucto-invoices.php" instead of "uctoplus-invoices.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 264 characters long)
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
There were no executable files found in this plugin1,868 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 216 | 135 | 1,260 |
CSS | 2 | 66 | 0 | 391 |
PO File | 1 | 62 | 124 | 163 |
SVG | 5 | 0 | 2 | 39 |
JavaScript | 1 | 3 | 0 | 15 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 26.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 106.00 |
Average method complexity | 3.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 1 | 14.29% |
▷ Concrete classes | 6 | 85.71% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 1 | 1.43% |
▷ Public methods | 58 | 82.86% |
▷ Protected methods | 3 | 4.29% |
▷ Private methods | 9 | 12.86% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin