Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.15MB] [CPU: ▼142.65ms] Passed 4 tests
Analyzing server-side resources used by TIPI
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.96 ▲0.13 | 38.37 ▲11.09 |
Dashboard /wp-admin | 3.26 ▲0.21 | 50.74 ▲2.15 |
Posts /wp-admin/edit.php | 3.31 ▲0.20 | 51.13 ▲3.01 |
Add New Post /wp-admin/post-new.php | 5.56 ▲0.13 | 92.89 ▼571.48 |
Media Library /wp-admin/upload.php | 3.14 ▲0.14 | 34.33 ▼4.29 |
Tipi Invoices Types /wp-admin/edit.php?post_type=tipi_objet | 3.18 | 36.70 |
All Tipi Faqs /wp-admin/edit.php?post_type=tipi_faq | 3.18 | 34.30 |
Add New /wp-admin/post-new.php?post_type=tipi_faq | 3.27 | 52.57 |
Add New /wp-admin/post-new.php?post_type=tipi_objet | 3.21 | 49.69 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 1 new option
New WordPress options |
---|
tipi_gateway_settings_option_name |
Browser metrics Passed 4 tests
A check of browser resources used by TIPI
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,784 ▲188 | 16.01 ▲0.27 | 11.18 ▲1.32 | 49.49 ▲2.24 |
Dashboard /wp-admin | 3,048 ▲117 | 5.91 ▼0.30 | 144.13 ▼9.50 | 109.08 ▼7.05 |
Posts /wp-admin/edit.php | 2,820 ▲81 | 2.71 ▼0.00 | 65.17 ▼2.82 | 86.51 ▼5.67 |
Add New Post /wp-admin/post-new.php | 1,737 ▲239 | 16.81 ▼2.01 | 405.31 ▼18.06 | 115.26 ▲3.62 |
Media Library /wp-admin/upload.php | 1,891 ▲84 | 5.02 ▼0.03 | 148.96 ▼31.29 | 121.53 ▼5.04 |
Tipi Invoices Types /wp-admin/edit.php?post_type=tipi_objet | 1,477 | 2.65 | 70.18 | 75.23 |
All Tipi Faqs /wp-admin/edit.php?post_type=tipi_faq | 1,477 | 2.63 | 68.11 | 74.05 |
Add New /wp-admin/post-new.php?post_type=tipi_faq | 2,962 | 8.99 | 227.59 | 131.23 |
Add New /wp-admin/post-new.php?post_type=tipi_objet | 2,096 | 3.35 | 92.84 | 85.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 1 option
- tipi_gateway_settings_option_name
Smoke tests 50% 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 0% 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
Please fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-tipi/admin/partials/tipi-admin-header.php
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-tipi/public/partials/faq.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-tipi/public/partials/confirmation-tipi.php:16
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-tipi/public/partials/tipi-public-display.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-tipi/admin/partials/tipi-admin-display.php:17
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/wp-tipi/public/partials/objet-type.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: city hall, e-commerce, credit card, collectivity, mairie...
wp-tipi/tipi.php 92% from 13 tests
The main PHP script in "TIPI" version 1.1.7.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-tipi.php" instead of "tipi.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,573 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 174 | 530 | 739 |
JavaScript | 4 | 99 | 56 | 372 |
SVG | 1 | 0 | 0 | 288 |
PO File | 1 | 41 | 43 | 113 |
CSS | 3 | 3 | 20 | 61 |
PHP code Passed 2 tests
This is a very shot 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.24 |
Average class complexity | 5.71 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 1.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 44 | |
▷ Static methods | 3 | 6.82% |
▷ Public methods | 39 | 88.64% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.36% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.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
PNG images were not found in this plugin