10% geetest

Code Review | GEETEST

WordPress plugin GEETEST scored10%from 54 tests.

About plugin

  • Plugin page: geetest
  • Plugin version: 6.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.2-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 17, 2013
  • Latest release: Jul 11, 2023
  • Number of updates: 99
  • Update frequency: every 36.5 days
  • Top authors: geetestdevelop (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /10,716 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.68 ▲0.2241.80 ▼1.79
Dashboard /wp-admin3.58 ▲0.2849.45 ▼8.71
Posts /wp-admin/edit.php3.63 ▲0.2853.70 ▲5.17
Add New Post /wp-admin/post-new.php6.12 ▲0.2399.65 ▼2.57
Media Library /wp-admin/upload.php3.44 ▲0.2140.09 ▲1.96
GeeTest /wp-admin/options-general.php?page=geetest/GeetestActions.php3.4433.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,956 ▲19514.02 ▼0.257.79 ▲6.0042.85 ▼1.99
Dashboard /wp-admin2,206 ▲295.56 ▼0.0282.99 ▼16.4139.65 ▼7.57
Posts /wp-admin/edit.php2,114 ▲141.99 ▼0.0242.12 ▲2.4336.50 ▼0.62
Add New Post /wp-admin/post-new.php1,539 ▲1323.38 ▲0.33633.69 ▼61.1444.87 ▼29.90
Media Library /wp-admin/upload.php1,414 ▲204.23 ▼0.07107.36 ▲0.6749.90 ▲6.00
GeeTest /wp-admin/options-general.php?page=geetest/GeetestActions.php1,1501.8128.7240.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

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
The official readme.txt might help

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:
LanguageFilesBlank linesComment linesLines of code
PHP151962571,366
reStructuredText118032
JavaScript20228

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 code0.24
Average class complexity12.12
▷ Minimum class complexity3.00
▷ Maximum class complexity48.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods76
▷ Static methods79.21%
▷ Public methods6484.21%
▷ Protected methods00.00%
▷ Private methods1215.79%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants25
▷ Global constants312.00%
▷ Class constants2288.00%
▷ Public constants22100.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