Benchmarks
Plugin footprint 58% 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
These installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/geetest/common/GeetestBase.php+7
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.23MB] [CPU: ▼2.78ms] Passed 4 tests
A check of server-side resources used by GEETEST
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 41.80 ▼1.79 |
Dashboard /wp-admin | 3.58 ▲0.28 | 49.45 ▼8.71 |
Posts /wp-admin/edit.php | 3.63 ▲0.28 | 53.70 ▲5.17 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 99.65 ▼2.57 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 40.09 ▲1.96 |
GeeTest /wp-admin/options-general.php?page=geetest/GeetestActions.php | 3.44 | 33.59 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
geetest_options |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GEETEST
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,956 ▲195 | 14.02 ▼0.25 | 7.79 ▲6.00 | 42.85 ▼1.99 |
Dashboard /wp-admin | 2,206 ▲29 | 5.56 ▼0.02 | 82.99 ▼16.41 | 39.65 ▼7.57 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 1.99 ▼0.02 | 42.12 ▲2.43 | 36.50 ▼0.62 |
Add New Post /wp-admin/post-new.php | 1,539 ▲13 | 23.38 ▲0.33 | 633.69 ▼61.14 | 44.87 ▼29.90 |
Media Library /wp-admin/upload.php | 1,414 ▲20 | 4.23 ▼0.07 | 107.36 ▲0.67 | 49.90 ▲6.00 |
GeeTest /wp-admin/options-general.php?page=geetest/GeetestActions.php | 1,150 | 1.81 | 28.72 | 40.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/geetest/StartCaptchaServlet.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/geetest/geetest.php:37
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/geetest/common/settings.php:14
- > 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 on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots need descriptions #5, #6, #7, #8, #9 in geetest/assets to your readme.txt
geetest/geetest.php 92% from 13 tests
"GEETEST" version 6.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 153 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,426 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 196 | 257 | 1,366 |
reStructuredText | 1 | 18 | 0 | 32 |
JavaScript | 2 | 0 | 2 | 28 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 12.12 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 7 | 9.21% |
▷ Public methods | 64 | 84.21% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 15.79% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 25 | |
▷ Global constants | 3 | 12.00% |
▷ Class constants | 22 | 88.00% |
▷ Public constants | 22 | 100.00% |
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
No PNG images were found in this plugin