10% neoncrm-events-widget

Code Review | NeonCRM Events Widget

WordPress plugin NeonCRM Events Widget scored10%from 54 tests.

About plugin

  • Plugin page: neoncrm-events-wi...
  • Plugin version: 0.20
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9
  • WordPress version: 6.3.1
  • First release: Oct 16, 2014
  • Latest release: Feb 12, 2018
  • Number of updates: 30
  • Update frequency: every 40.5 days
  • Top authors: colinpizarek (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active /2,267 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
You still need to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/neoncrm-events-widget/neon-events.php+449
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼59.40ms] Passed 4 tests

Server-side resources used by NeonCRM Events Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.443.84 ▼37.18
Dashboard /wp-admin2.05 ▼1.265.25 ▼46.81
Posts /wp-admin/edit.php2.05 ▼1.315.46 ▼48.60
Add New Post /wp-admin/post-new.php2.05 ▼3.844.75 ▼104.99
Media Library /wp-admin/upload.php2.05 ▼1.184.52 ▼30.64

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
widget_neoncrm_events
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for NeonCRM Events Widget
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.58 ▼0.591.69 ▲0.0538.66 ▼2.48
Dashboard /wp-admin2,206 ▲154.83 ▼1.05111.98 ▲6.2442.45 ▼2.35
Posts /wp-admin/edit.php2,086 ▼32.02 ▲0.0135.13 ▼4.7430.76 ▼4.63
Add New Post /wp-admin/post-new.php1,514 ▼1917.36 ▼5.91675.28 ▲48.8657.60 ▲8.74
Media Library /wp-admin/upload.php1,391 ▲34.24 ▼0.0197.61 ▼1.8042.80 ▼4.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/neoncrm-events-widget/neon-events.php+449
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_neoncrm_events
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/neoncrm-events-widget/neon-events.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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
5 plugin tags: neon, events, crm, nonprofit, neoncrm

neoncrm-events-widget/neon-events.php 92% from 13 tests

The entry point to "NeonCRM Events Widget" version 0.20 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("neoncrm-events-widget.php" instead of "neon-events.php")

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
No dangerous file extensions were detected460 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP258101460

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity48.50
▷ Minimum class complexity25.00
▷ Maximum class complexity72.00
Average method complexity10.50
▷ Minimum method complexity1.00
▷ Maximum method complexity70.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin