Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼3.65ms] Passed 4 tests
An overview of server-side resources used by [凹凸曼]一键QQ登录
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 35.73 ▼3.84 |
Dashboard /wp-admin | 3.38 ▲0.03 | 51.76 ▼13.09 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.38 ▲1.76 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 86.59 ▲0.56 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 36.15 ▲3.07 |
settings /wp-admin/options-general.php?page=apoyl-qq-settings | 3.28 | 32.03 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_apoyl_qq |
New WordPress options |
---|
can_compress_scripts |
apoyl_qq_db_version |
apoyl-qq-settings |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by [凹凸曼]一键QQ登录
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,798 ▲51 | 14.10 ▼0.16 | 1.65 ▼0.07 | 35.98 ▼7.16 |
Dashboard /wp-admin | 2,193 ▲18 | 5.64 ▼0.08 | 95.04 ▼21.84 | 42.87 ▼3.91 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.94 ▼0.08 | 40.31 ▲2.12 | 37.40 ▲4.81 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.04 ▼0.20 | 584.32 ▼10.44 | 53.41 ▲5.70 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.20 ▲0.02 | 98.85 ▲4.57 | 43.80 ▼1.03 |
settings /wp-admin/options-general.php?page=apoyl-qq-settings | 928 | 2.16 | 24.54 | 28.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie tables detected upon uninstall: 1 table
- wp_apoyl_qq
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- apoyl_qq_db_version
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means 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
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/apoyl-qq/admin/partials/nav.php:11
- > PHP Fatal error
require_once(): Failed opening required 'APOYL_QQ_DIRadmin/partials/nav.php' (include_path='.:/usr/share/php') in wp-content/plugins/apoyl-qq/admin/partials/list.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/apoyl-qq/admin/partials/setting.php:23
- > PHP Warning
Use of undefined constant APOYL_QQ_DIR - assumed 'APOYL_QQ_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/apoyl-qq/admin/partials/list.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/apoyl-qq/public/partials/public-display.php:12
- > PHP Warning
require_once(APOYL_QQ_DIRadmin/partials/nav.php): failed to open stream: No such file or directory in wp-content/plugins/apoyl-qq/admin/partials/list.php on line 13
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: qqlogin, qq, oauth2
apoyl-qq/apoyl-qq.php Passed 13 tests
The main PHP file in "[凹凸曼]一键QQ登录" ver. 1.6.0 adds more information about the plugin and also serves as the entry point for this plugin
119 characters long description:
实现QQ一键登录,让用户不在繁琐去注册用户,一键实现QQ登录,极大的方便用户登录网站.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin579 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 156 | 169 | 576 |
JavaScript | 1 | 2 | 0 | 3 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 4.11 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 4 | 10.53% |
▷ Public methods | 32 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 15.79% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 4 | 44.44% |
▷ Class constants | 5 | 55.56% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/img/bt_white_24X24.png | 0.98KB | 0.73KB | ▼ 25.40% |
public/img/bt_blue_76X24.png | 2.17KB | 1.64KB | ▼ 24.38% |
public/img/bt_blue_24X24.png | 0.93KB | 0.80KB | ▼ 14.12% |
public/img/bt_white_76X24.png | 2.23KB | 1.53KB | ▼ 31.36% |