Benchmarks
Plugin footprint 23% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▼1.16MB] [CPU: ▼45.52ms] Passed 4 tests
An overview of server-side resources used by IQ Authorization
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.82 ▼0.64 | 15.18 ▼26.33 |
Dashboard /wp-admin | 2.86 ▼0.49 | 19.34 ▼46.86 |
Posts /wp-admin/edit.php | 2.86 ▼0.50 | 18.53 ▼29.09 |
Add New Post /wp-admin/post-new.php | 2.86 ▼3.03 | 16.29 ▼79.80 |
Media Library /wp-admin/upload.php | 2.86 ▼0.37 | 18.24 ▼19.35 |
Custom fields /wp-admin/admin.php?page=iq-auth-custom-fields-page | 2.86 | 18.44 |
Registration /wp-admin/admin.php?page=iq-auth-regist-page | 2.86 | 16.87 |
IQ Authorization /wp-admin/admin.php?page=iq-auth-index | 2.86 | 16.57 |
Authorization /wp-admin/admin.php?page=iq-auth-login-page | 2.86 | 17.16 |
Server storage [IO: ▲6.32MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 56 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_iq_auth_code |
wp_iq_auth_settings |
wp_iq_auth_antiflood |
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for IQ Authorization
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,844 ▲98 | 14.35 ▲0.21 | 1.97 ▲0.35 | 42.51 ▼3.65 |
Dashboard /wp-admin | 2,240 ▲63 | 5.62 ▲0.05 | 89.68 ▼4.30 | 39.60 ▼0.37 |
Posts /wp-admin/edit.php | 2,148 ▲51 | 1.96 ▼0.05 | 40.55 ▲4.83 | 37.21 ▲4.37 |
Add New Post /wp-admin/post-new.php | 1,568 ▲42 | 23.03 ▼0.58 | 672.76 ▼31.79 | 37.00 ▼20.60 |
Media Library /wp-admin/upload.php | 1,442 ▲42 | 4.21 ▲0.03 | 94.77 ▼11.28 | 40.44 ▼6.61 |
Custom fields /wp-admin/admin.php?page=iq-auth-custom-fields-page | 919 | 1.99 | 27.30 | 75.87 |
Registration /wp-admin/admin.php?page=iq-auth-regist-page | 951 | 2.00 | 22.91 | 50.11 |
IQ Authorization /wp-admin/admin.php?page=iq-auth-index | 1,184 | 2.00 | 25.65 | 48.48 |
Authorization /wp-admin/admin.php?page=iq-auth-login-page | 876 | 2.04 | 25.60 | 36.41 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall gracefully
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- The plugin did not uninstall successfully, leaving 3 tables in the database
- wp_iq_auth_antiflood
- wp_iq_auth_code
- wp_iq_auth_settings
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- 10 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=iq-auth-login-page
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: authorization users, registration, user registration, authorization
registration-and-authorization/iq_authorize.php 77% from 13 tests
The main file in "IQ Authorization" v. 1.0.1 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:
- Requires at least: Required version must match the one declared in readme.txt ("5.4" instead of "5.2")
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("registration-and-authorization.php" instead of "iq_authorize.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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
There were no executable files found in this plugin32,528 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 1 | 2,097 | 0 | 16,845 |
CSS | 6 | 2,144 | 14 | 8,865 |
PHP | 23 | 388 | 340 | 3,663 |
SVG | 2 | 0 | 0 | 2,106 |
JavaScript | 5 | 114 | 13 | 1,049 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 3 | 11.54% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.13MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/logo_15022023205028.png | 7.83KB | 3.58KB | ▼ 54.34% |
assets/img/iq_auth_nologo.png | 10.04KB | 10.03KB | 0.09% |
assets/img/logo_15022023205955.png | 107.26KB | 38.31KB | ▼ 64.29% |
assets/img/logo_15022023210008.png | 7.83KB | 3.58KB | ▼ 54.34% |