84% gr-on-wp-signup

Code Review | GR on WP signup

WordPress plugin GR on WP signup scored 84% from 54 tests.

About plugin

  • Plugin page: gr-on-wp-signup
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-3.9
  • WordPress version: 6.3.1
  • First release: Mar 25, 2014
  • Latest release: May 9, 2014
  • Number of updates: 24
  • Update frequency: every 1.9 days
  • Top authors: rezaurc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,059 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.87ms] Passed 4 tests

This is a short check of server-side resources used by GR on WP signup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0033.68 ▼7.58
Dashboard /wp-admin3.31 ▲0.0047.26 ▼2.51
Posts /wp-admin/edit.php3.36 ▲0.0046.38 ▲0.69
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.89 ▼16.65
Media Library /wp-admin/upload.php3.23 ▲0.0031.48 ▼0.74

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

GR on WP signup: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.451.63 ▼0.2838.63 ▼4.68
Dashboard /wp-admin2,206 ▲155.88 ▼0.02100.91 ▼1.6539.73 ▼5.85
Posts /wp-admin/edit.php2,092 ▼02.01 ▼0.0239.31 ▼10.8434.89 ▼19.37
Add New Post /wp-admin/post-new.php1,534 ▼823.21 ▲4.85653.60 ▲5.2959.17 ▲0.90
Media Library /wp-admin/upload.php1,391 ▲34.22 ▲0.0294.16 ▼9.7143.48 ▼1.37

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/gr-on-wp-signup/gr-on-wp-signup.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (quick view)
You can take inspiration from this readme.txt

gr-on-wp-signup/gr-on-wp-signup.php Passed 13 tests

The main PHP script in "GR on WP signup" version 0.4 is automatically included on every request by WordPress
106 characters long description:
A plugin depends on getresponse integration plugin for add the ability to use WP register form for signup.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP151544

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot.png24.41KB8.89KB▼ 63.57%