Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.76MB] [CPU: ▼0.29ms] Passed 4 tests
Analyzing server-side resources used by lgv-anmeldesystem
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.23 ▲0.76 | 39.94 ▲3.04 |
Dashboard /wp-admin | 4.07 ▲0.77 | 48.40 ▼7.07 |
Posts /wp-admin/edit.php | 4.12 ▲0.76 | 55.02 ▼3.50 |
Add New Post /wp-admin/post-new.php | 6.65 ▲0.77 | 94.17 ▲11.59 |
Media Library /wp-admin/upload.php | 3.99 ▲0.76 | 38.77 ▲6.39 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 21 new files
Database: 3 new tables, 7 new options
New tables |
---|
wp_lgvas_registration |
wp_lgvas_event |
wp_lgvas_eventgroup |
New WordPress options |
---|
db_upgraded |
lgvas_db_version |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for lgv-anmeldesystem
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲40 | 14.35 ▲0.01 | 1.95 ▲0.14 | 37.90 ▼5.74 |
Dashboard /wp-admin | 2,208 ▲31 | 5.60 ▲0.02 | 91.62 ▼10.74 | 40.35 ▼3.23 |
Posts /wp-admin/edit.php | 2,116 ▲13 | 1.95 ▼0.03 | 38.76 ▼4.93 | 36.19 ▼3.03 |
Add New Post /wp-admin/post-new.php | 1,539 ▲10 | 23.58 ▲0.34 | 688.90 ▲85.37 | 48.01 ▼6.36 |
Media Library /wp-admin/upload.php | 1,416 ▲19 | 4.19 ▼0.03 | 103.60 ▼29.86 | 40.49 ▼12.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 3 tables in the database
- wp_lgvas_event
- wp_lgvas_eventgroup
- wp_lgvas_registration
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-comments
- lgvas_db_version
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Warning
Use of undefined constant LGV_AS_PATH - assumed 'LGV_AS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-bo-payment.php on line 9
- > PHP Warning
require_once(LGV_AS_PATHincludes/class-lgv-as-bo-payment.php): failed to open stream: No such file or directory in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-bo.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'LGV_AS_BO_EventGroup' not found in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-db-eventgroup.php:9
- > PHP Warning
Use of undefined constant LGV_AS_PATH - assumed 'LGV_AS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-bo.php on line 9
- > PHP Warning
require_once(LGV_AS_PATHincludes/class-lgv-as-db-event.php): failed to open stream: No such file or directory in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-db.php on line 107
- > PHP Fatal error
Uncaught Error: Class 'LGV_AS_BO_Registration' not found in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-db-registration.php:9
- > PHP Fatal error
require_once(): Failed opening required 'LGV_AS_PATHincludes/class-lgv-as-bo-payment.php' (include_path='.:/usr/share/php') in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-bo.php on line 9
- > PHP Fatal error
Uncaught Error: Class 'LGV_AS_BO_Event' not found in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-db-event.php:22
- > PHP Warning
Use of undefined constant LGV_AS_PATH - assumed 'LGV_AS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-db.php on line 107
- > PHP Fatal error
require_once(): Failed opening required 'LGV_AS_PATHincludes/class-lgv-as-db-event.php' (include_path='.:/usr/share/php') in wp-content/plugins/lgv-anmeldesystem/includes/class-lgv-as-db.php on line 107
- > PHP Warning
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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add images for these screenshots: #1 (Example af an registration formular), #2 (Example of the backend)
lgv-anmeldesystem/lgv-anmeldesystem.php Passed 13 tests
"lgv-anmeldesystem" version 1.21's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
33 characters long description:
Helps to register for free events
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected4,264 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 684 | 607 | 4,197 |
JavaScript | 1 | 10 | 7 | 63 |
CSS | 1 | 1 | 0 | 4 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Method cyclomatic complexity has to be reduced to less than 100 (currently 141)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
Average class complexity | 34.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 164.00 |
Average method complexity | 4.57 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 141.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 199 | |
▷ Static methods | 73 | 36.68% |
▷ Public methods | 178 | 89.45% |
▷ Protected methods | 8 | 4.02% |
▷ Private methods | 13 | 6.53% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 2 | 11.11% |
▷ Class constants | 16 | 88.89% |
▷ Public constants | 16 | 100.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
2 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/Screenshot-2.png | 66.81KB | 22.77KB | ▼ 65.92% |
assets/Screenshot-1.png | 31.80KB | 12.38KB | ▼ 61.08% |