Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼3.26ms] Passed 4 tests
Analyzing server-side resources used by Camptix Invoices
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.34 ▲2.03 |
Dashboard /wp-admin | 3.39 ▲0.09 | 51.90 ▲2.64 |
Posts /wp-admin/edit.php | 3.44 ▲0.09 | 48.40 ▼7.09 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 86.33 ▼8.33 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.21 ▲0.35 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Camptix Invoices
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.48 ▼0.19 | 1.99 ▲0.05 | 43.70 ▲0.48 |
Dashboard /wp-admin | 2,206 ▲18 | 4.88 ▼0.93 | 120.60 ▲11.07 | 44.38 ▲2.07 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.00 | 36.48 ▼6.39 | 33.53 ▼4.77 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 21.08 ▼2.06 | 668.17 ▼26.42 | 46.07 ▼17.19 |
Media Library /wp-admin/upload.php | 1,391 ▲6 | 4.28 ▲0.03 | 99.98 ▼2.13 | 43.62 ▲0.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 50% from 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
Almost there! Just fix the following items
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'CampTix_Addon' not found in wp-content/plugins/invoices-camptix/includes/class-camptix-addon-invoices.php:15
- > PHP Warning
Creating default object from empty value in wp-content/plugins/invoices-camptix/includes/lib/fpdf/template.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: organizer, notes, event, tickets, invoice...
invoices-camptix/camptix-invoices.php 92% from 13 tests
The main PHP script in "Camptix Invoices" version 1.0.1 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("invoices-camptix.php" instead of "camptix-invoices.php")
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
No dangerous file extensions were detected3,279 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 221 | 522 | 3,020 |
PO File | 1 | 62 | 74 | 158 |
JavaScript | 2 | 2 | 3 | 69 |
CSS | 2 | 2 | 0 | 32 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 143.33 |
▷ Minimum class complexity | 46.00 |
▷ Maximum class complexity | 338.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 17 | 13.93% |
▷ Public methods | 81 | 66.39% |
▷ Protected methods | 38 | 31.15% |
▷ Private methods | 3 | 2.46% |
Functions | 16 | |
▷ Named functions | 15 | 93.75% |
▷ Anonymous functions | 1 | 6.25% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
PNG images were not found in this plugin