78% neoncrm-sign-in

Code Review | NeonCRM Sign-In

WordPress plugin NeonCRM Sign-In scored78%from 54 tests.

About plugin

  • Plugin page: neoncrm-sign-in
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.1
  • WordPress version: 6.3.1
  • First release: Apr 7, 2016
  • Latest release: Sep 4, 2019
  • Number of updates: 26
  • Update frequency: every 47.9 days
  • Top authors: colinpizarek (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

100+ active /2,509 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼13.42ms] Passed 4 tests

An overview of server-side resources used by NeonCRM Sign-In
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.10 ▼5.54
Dashboard /wp-admin3.33 ▼0.0248.67 ▼17.26
Posts /wp-admin/edit.php3.38 ▲0.0247.37 ▼4.96
Add New Post /wp-admin/post-new.php5.91 ▲0.0283.27 ▼25.91
Media Library /wp-admin/upload.php3.25 ▲0.0238.01 ▲3.36
NeonCRM Sign-In Settings /wp-admin/options-general.php?page=neonsso3.2034.19

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by NeonCRM Sign-In
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.34 ▼0.231.67 ▼0.4948.93 ▲5.95
Dashboard /wp-admin2,202 ▲285.59 ▼0.0694.22 ▼4.3641.59 ▼4.19
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0236.46 ▼0.5238.03 ▲2.51
Add New Post /wp-admin/post-new.php1,531 ▲323.19 ▲0.23674.02 ▲13.3153.38 ▲0.58
Media Library /wp-admin/upload.php1,404 ▲44.21 ▲0.00103.22 ▼5.0543.49 ▼3.64
NeonCRM Sign-In Settings /wp-admin/options-general.php?page=neonsso9042.0923.2929.28

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
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
  • 8 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=neonsso
    • > Notice in wp-content/plugins/neoncrm-sign-in/neoncrm-sso-admin-page.php+194
    Trying to access array offset on value of type bool

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
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neoncrm-sign-in/neoncrm-sso-menu-page.php:82
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neoncrm-sign-in/neoncrm-sso-profile-page.php:130
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neoncrm-sign-in/neoncrm-sso-admin-page.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/neoncrm-sign-in/neoncrm-sso-admin-page.php:8

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 96% 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
7 plugin tags: crm, neoncrm, oauth, nonprofit, single sign-on...

neoncrm-sign-in/neoncrm-sso.php 92% from 13 tests

"NeonCRM Sign-In" version 1.2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("neoncrm-sign-in.php" instead of "neoncrm-sso.php")

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
No dangerous file extensions were detected907 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4276480907

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.50
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions38
▷ Named functions3797.37%
▷ Anonymous functions12.63%
Constants12
▷ Global constants12100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin