Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.22MB] [CPU: ▼0.27ms] Passed 4 tests
An overview of server-side resources used by AlT Report
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 44.96 ▲5.85 |
Dashboard /wp-admin | 3.51 ▲0.20 | 45.39 ▼4.48 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 51.08 ▲4.21 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.21 | 85.68 ▼2.53 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 35.15 ▲1.72 |
Add New /wp-admin/post-new.php?post_type=rapport | 3.55 | 48.90 |
Report tickets /wp-admin/edit.php?post_type=rapport | 3.48 | 36.31 |
Statistiques /wp-admin/edit.php?post_type=rapport&page=statistiques | 3.40 | 31.64 |
Setting /wp-admin/edit.php?post_type=rapport&page=settings | 3.47 | 33.07 |
Redmine setting /wp-admin/edit.php?post_type=rapport&page=settings-redmine | 3.44 | 31.89 |
Server storage [IO: ▲0.23MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for AlT Report
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲241 | 13.59 ▼0.80 | 8.79 ▲7.04 | 37.43 ▼8.43 |
Dashboard /wp-admin | 2,245 ▲54 | 5.86 ▲1.00 | 103.37 ▼5.45 | 40.07 ▼9.24 |
Posts /wp-admin/edit.php | 2,131 ▲42 | 2.05 ▲0.08 | 39.73 ▲4.28 | 34.44 ▲0.93 |
Add New Post /wp-admin/post-new.php | 1,565 ▲48 | 23.08 ▲5.58 | 651.59 ▼11.50 | 49.80 ▼5.14 |
Media Library /wp-admin/upload.php | 1,427 ▲39 | 4.23 ▲0.04 | 95.67 ▼1.53 | 42.83 ▲1.04 |
Add New /wp-admin/post-new.php?post_type=rapport | 2,344 | 7.62 | 174.80 | 65.20 |
Report tickets /wp-admin/edit.php?post_type=rapport | 1,179 | 2.00 | 35.93 | 29.69 |
Statistiques /wp-admin/edit.php?post_type=rapport&page=statistiques | 818 | 2.06 | 26.11 | 25.78 |
Setting /wp-admin/edit.php?post_type=rapport&page=settings | 2,035 | 1.85 | 25.90 | 29.48 |
Redmine setting /wp-admin/edit.php?post_type=rapport&page=settings-redmine | 974 | 2.04 | 22.88 | 46.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- widget_recent-posts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/edit.php?post_type=rapport&page=statistiques
- > Notice in wp-content/plugins/alt-report/template/statistiques.php+61
Undefined variable: array_status
- > GET request to /wp-admin/edit.php?post_type=rapport&page=statistiques
- > Warning in wp-content/plugins/alt-report/template/statistiques.php+61
Invalid argument supplied for foreach()
- 2 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rapport&page=settings-redmine
- > Notice in wp-content/plugins/alt-report/template/settings_redmine.php+105
Undefined index: protocol
- > GET request to /wp-admin/edit.php?post_type=rapport&page=settings-redmine
- > Notice in wp-content/plugins/alt-report/template/settings_redmine.php+131
Undefined index: adresse
- > GET request to /wp-admin/edit.php?post_type=rapport&page=settings-redmine
- > Notice in wp-content/plugins/alt-report/template/settings_redmine.php+139
Undefined index: projet
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 fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/alt-report/assets/altreport.css.php
- 8× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_site_url() in wp-content/plugins/alt-report/includes/script.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alt-report/alt-report.php:21
- > PHP Notice
Undefined variable: altreport_infos in wp-content/plugins/alt-report/includes/modales.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/alt-report/includes/modales.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/alt-report/includes/parametrage.php:6
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/alt-report/includes/modales.php on line 8
- > PHP Warning
Use of undefined constant ALTREPORT_LOAD_ASSETS - assumed 'ALTREPORT_LOAD_ASSETS' (this will throw an Error in a future version of PHP) in wp-content/plugins/alt-report/includes/script.php on line 10
- > PHP Warning
Use of undefined constant ALTREPORT_VERSION - assumed 'ALTREPORT_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/alt-report/includes/script.php on line 10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% 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 to be fixed:
- Donate link: Please fix this invalid URI: "wordpress.lived.fr/wp-login.php"
alt-report/alt-report.php 92% from 13 tests
"AlT Report" version 1.12.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected4,386 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 430 | 112 | 2,510 |
PHP | 10 | 201 | 186 | 1,440 |
CSS | 2 | 61 | 12 | 256 |
PO File | 2 | 72 | 72 | 180 |
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 | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 2.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 13 | 100.00% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin