Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.33MB] [CPU: ▼6.67ms] Passed 4 tests
This is a short check of server-side resources used by Results for Handball4All
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.82 ▲0.36 | 40.84 ▲0.23 |
Dashboard /wp-admin | 3.67 ▲0.33 | 52.16 ▼10.02 |
Posts /wp-admin/edit.php | 3.73 ▲0.37 | 51.33 ▲6.08 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 83.92 ▼16.92 |
Media Library /wp-admin/upload.php | 3.53 ▲0.31 | 36.09 ▲0.05 |
RH4A Options /wp-admin/admin.php?page=rh4a | 3.50 | 31.76 |
RH4A Timetables /wp-admin/admin.php?page=rh4a-timetable | 3.50 | 34.59 |
RH4A Standings /wp-admin/admin.php?page=rh4a-standing | 3.50 | 31.93 |
RH4A Next Match /wp-admin/admin.php?page=rh4a-next-match | 3.50 | 33.51 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: 3 new tables, 8 new options
New tables |
---|
wp_rh4a_next_match |
wp_rh4a_standing |
wp_rh4a_timetable |
New WordPress options |
---|
can_compress_scripts |
rh4a_version |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
rh4a_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Results for Handball4All
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲87 | 14.24 ▼0.12 | 1.58 ▼0.11 | 35.76 ▼6.88 |
Dashboard /wp-admin | 2,237 ▲57 | 5.65 ▲0.01 | 101.21 ▲10.96 | 42.52 ▼0.09 |
Posts /wp-admin/edit.php | 2,142 ▲42 | 2.02 ▼0.01 | 41.22 ▼0.61 | 35.36 ▼1.32 |
Add New Post /wp-admin/post-new.php | 1,561 ▲35 | 23.10 ▲0.03 | 652.96 ▲14.96 | 50.77 ▼1.07 |
Media Library /wp-admin/upload.php | 1,445 ▲51 | 4.24 ▲0.05 | 99.76 ▲2.21 | 44.29 ▲1.83 |
RH4A Options /wp-admin/admin.php?page=rh4a | 853 | 2.05 | 25.54 | 26.47 |
RH4A Timetables /wp-admin/admin.php?page=rh4a-timetable | 836 | 2.05 | 26.20 | 28.03 |
RH4A Standings /wp-admin/admin.php?page=rh4a-standing | 830 | 2.02 | 24.69 | 24.62 |
RH4A Next Match /wp-admin/admin.php?page=rh4a-next-match | 827 | 2.02 | 25.12 | 26.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'RH4A_Render_Abstract' not found in wp-content/plugins/results-for-handball4all/public/class-rh4a-render-next-match.php:11
- > PHP Fatal error
Uncaught Error: Class 'RH4A_Render_Abstract' not found in wp-content/plugins/results-for-handball4all/public/class-rh4a-render-standing.php:11
- > PHP Fatal error
Uncaught Error: Class 'RH4A_Shortcode_Abstract' not found in wp-content/plugins/results-for-handball4all/admin/class-rh4a-admin-standing.php:11
- > PHP Fatal error
Uncaught Error: Class 'RH4A_Render_Abstract' not found in wp-content/plugins/results-for-handball4all/public/class-rh4a-render-timetable.php:11
- > PHP Fatal error
Uncaught Error: Class 'RH4A_Shortcode_Abstract' not found in wp-content/plugins/results-for-handball4all/admin/class-rh4a-admin-timetable.php:11
- > PHP Fatal error
Uncaught Error: Class 'RH4A_Shortcode_Abstract' not found in wp-content/plugins/results-for-handball4all/admin/class-rh4a-admin-next-match.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
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: sports, results, standing, h4a, timetable...
results-for-handball4all/results-h4a.php 92% from 13 tests
The main file in "Results for Handball4All" v. 1.3.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("results-for-handball4all.php" instead of "results-h4a.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin1,739 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 20 | 230 | 494 | 1,406 |
PO File | 1 | 75 | 118 | 197 |
CSS | 2 | 5 | 0 | 74 |
JavaScript | 1 | 2 | 6 | 62 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 14.56 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 3.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 53.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 2 | 12.50% |
▷ Concrete classes | 14 | 87.50% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 4 | 3.60% |
▷ Public methods | 73 | 65.77% |
▷ Protected methods | 23 | 20.72% |
▷ Private methods | 15 | 13.51% |
Functions | 5 | |
▷ Named functions | 2 | 40.00% |
▷ Anonymous functions | 3 | 60.00% |
Constants | 7 | |
▷ Global constants | 1 | 14.29% |
▷ Class constants | 6 | 85.71% |
▷ Public constants | 4 | 66.67% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected