Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.64MB] [CPU: ▼16.69ms] Passed 4 tests
Server-side resources used by QR Code for Pages
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 38.17 ▼4.49 |
Dashboard /wp-admin | 3.44 ▲0.14 | 56.53 ▲10.92 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 54.74 ▲4.07 |
Add New Post /wp-admin/post-new.php | 2.91 ▼2.98 | 18.43 ▼74.01 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 38.94 ▲7.69 |
Server storage [IO: ▲0.71MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 210 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for QR Code for Pages
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.25 ▲0.00 | 1.91 ▼0.51 | 43.16 ▲0.60 |
Dashboard /wp-admin | 2,196 ▲16 | 5.56 ▼0.10 | 89.43 ▲2.10 | 39.05 ▲2.97 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 1.98 ▼0.01 | 35.44 ▼2.64 | 35.40 ▼3.45 |
Add New Post /wp-admin/post-new.php | 1,532 ▲4 | 22.56 ▼0.42 | 670.64 ▼28.04 | 52.77 ▲0.48 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.19 ▼0.02 | 97.04 ▼1.14 | 40.82 ▼4.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% 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 without warnings or errors
- > Warning in wp-content/plugins/qr-code-for-pages/backend/src/Services/File/UploadDirectoryService.php+44
rmdir(wp-content/uploads/me-qr-data/qr-codes): No such file or directory
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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 items
- 44× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Interface 'Me_Qr\\Services\\Validation\\Assert\\Constraints\\ConstraintInterface' not found in wp-content/plugins/qr-code-for-pages/backend/src/Services/Validation/Assert/Constraints/AbstractConstraint.php:9
- > PHP Fatal error
Uncaught Error: Class 'Me_Qr\\Services\\Packages\\Response\\AbstractResponse' not found in wp-content/plugins/qr-code-for-pages/backend/src/Services/Packages/Response/SuccessResponse.php:5
- > PHP Fatal error
Uncaught Error: Class 'Me_Qr\\Services\\Packages\\Validator\\Assert\\Constraints\\AbstractConstraint' not found in wp-content/plugins/qr-code-for-pages/backend/src/Services/Packages/Validator/Assert/Constraints/NotNull.php:5
- > PHP Fatal error
Uncaught Error: Class 'Me_Qr\\Services\\Packages\\Validator\\Assert\\Constraints\\AbstractConstraint' not found in wp-content/plugins/qr-code-for-pages/backend/src/Services/Packages/Validator/Assert/Constraints/NotBlank.php:5
- > PHP Fatal error
Uncaught Error: Class 'Me_Qr\\Services\\Packages\\Response\\AbstractResponse' not found in wp-content/plugins/qr-code-for-pages/backend/src/Services/Packages/Response/SystemErrorResponse.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Me_Qr\\Repository\\RepositoryInterface' not found in wp-content/plugins/qr-code-for-pages/backend/src/Repository/PluginSettingsRepository.php:10
- > PHP Fatal error
Uncaught Error: Class 'Me_Qr\\Services\\Validation\\Assert\\Constraints\\AbstractConstraint' not found in wp-content/plugins/qr-code-for-pages/backend/src/Services/Validation/Assert/Constraints/DateTime.php:5
- > PHP Fatal error
Uncaught Error: Interface 'Me_Qr\\Repository\\RepositoryInterface' not found in wp-content/plugins/qr-code-for-pages/backend/src/Repository/BackupInfoRepository.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/qr-code-for-pages/backend/src/Controller/AccountController.php:13
- > PHP Fatal error
Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/qr-code-for-pages/backend/src/Controller/UpdatePluginDataController.php:22
- > 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)
No browser issues were found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Tags: You are using too many tags: 11 tag instead of maximum 10
- Requires php: The plugin version is formatted incorrectly
qr-code-for-pages/me-qr.php 77% from 13 tests
The main file in "QR Code for Pages" v. 2.0 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: It is recommended to name the main PHP file as the plugin slug ("qr-code-for-pages.php" instead of "me-qr.php")
- Requires PHP: Please use periods and digits for the required version (ex. "7.0" instead of "7.4+")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin12,599 lines of code in 202 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 169 | 1,452 | 990 | 6,641 |
JavaScript | 16 | 1,029 | 959 | 3,737 |
CSS | 9 | 64 | 2 | 1,155 |
JSON | 6 | 0 | 0 | 809 |
PO File | 1 | 126 | 71 | 249 |
Markdown | 1 | 5 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 4.39 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 1.97 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 53 | |
Interfaces | 14 | |
Traits | 0 | |
Classes | 131 | |
▷ Abstract classes | 5 | 3.82% |
▷ Concrete classes | 126 | 96.18% |
▷ Final classes | 0 | 0.00% |
Methods | 501 | |
▷ Static methods | 93 | 18.56% |
▷ Public methods | 449 | 89.62% |
▷ Protected methods | 8 | 1.60% |
▷ Private methods | 44 | 8.78% |
Functions | 38 | |
▷ Named functions | 1 | 2.63% |
▷ Anonymous functions | 37 | 97.37% |
Constants | 121 | |
▷ Global constants | 42 | 34.71% |
▷ Class constants | 79 | 65.29% |
▷ Public constants | 63 | 79.75% |
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
There were not PNG files found in your plugin