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.14MB] [CPU: ▼11.75ms] Passed 4 tests
This is a short check of server-side resources used by mtr-QTAN
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 42.51 ▼3.73 |
Dashboard /wp-admin | 3.16 ▼0.14 | 32.37 ▼19.95 |
Posts /wp-admin/edit.php | 3.31 ▼0.05 | 36.72 ▼14.53 |
Add New Post /wp-admin/post-new.php | 5.49 ▼0.39 | 82.42 ▼8.80 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 33.27 ▼3.46 |
Server storage [IO: ▲0.66MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_qtan-player |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for mtr-QTAN
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,568 ▼178 | 14.35 ▲0.01 | 1.74 ▼0.06 | 39.88 ▼6.54 |
Dashboard /wp-admin | 1,975 ▼216 | 5.59 ▲0.69 | 86.40 ▼12.15 | 47.29 ▲8.19 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 1.97 ▲0.00 | 54.12 ▲17.23 | 43.40 ▲9.10 |
Add New Post /wp-admin/post-new.php | 1,527 ▲13 | 17.38 ▼0.12 | 626.83 ▲8.22 | 52.27 ▲1.90 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.22 ▼0.02 | 96.49 ▼7.89 | 45.11 ▼0.55 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- theysaidso_admin_options
- widget_qtan-player
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
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
Please fix the following items
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/mtr-qtan/scb/BoxesPage.php:5
- > PHP Fatal error
Uncaught Error: Class 'scbBoxesPage' not found in wp-content/plugins/mtr-qtan/include/Qtan.adminpage.php:2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mtr-qtan/scb/Widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mtr-qtan/scb/load.php:32
- > PHP Fatal error
Uncaught Error: Class 'scbWidget' not found in wp-content/plugins/mtr-qtan/include/widget/QtanPlayer.widget.php:9
- > PHP Fatal error
Uncaught Error: Class 'scbBoxesPage' not found in wp-content/plugins/mtr-qtan/include/Qtan.adminpage.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Screenshots: Screenshot #1 (other style) image not found
mtr-qtan/wp-qtan.php 77% from 13 tests
Analyzing the main PHP file in "mtr-QTAN" version 5.1.0
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("mtr-qtan.php" instead of "wp-qtan.php")
- Domain Path: The domain path points to a folder that does not exist ("/lang")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin3,054 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 649 | 825 | 3,002 |
JSON | 1 | 0 | 0 | 22 |
JavaScript | 1 | 2 | 3 | 17 |
CSS | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 9.13 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.21 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 30 | |
▷ Abstract classes | 5 | 16.67% |
▷ Concrete classes | 25 | 83.33% |
▷ Final classes | 0 | 0.00% |
Methods | 214 | |
▷ Static methods | 63 | 29.44% |
▷ Public methods | 174 | 81.31% |
▷ Protected methods | 29 | 13.55% |
▷ Private methods | 11 | 5.14% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 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
4 PNG files occupy 0.41MB with 0.27MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/step.png | 41.39KB | 8.32KB | ▼ 79.89% |
screenshot-1.png | 12.21KB | 7.28KB | ▼ 40.34% |
screenshot-3.png | 157.01KB | 48.85KB | ▼ 68.89% |
screenshot-2.png | 213.75KB | 69.43KB | ▼ 67.52% |