89% nrby-events

Code Review | Nrby Events

WordPress plugin Nrby Events scored 89% from 54 tests.

About plugin

  • Plugin page: nrby-events
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0
  • WordPress version: 6.3.1
  • First release: Jun 22, 2022
  • Latest release: Jun 22, 2022
  • Number of updates: 5
  • Update frequency: N/A
  • Top authors: lamartaa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 167 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.51ms] Passed 4 tests

Analyzing server-side resources used by Nrby Events
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0435.68 ▼5.83
Dashboard /wp-admin3.33 ▲0.0344.38 ▼4.67
Posts /wp-admin/edit.php3.38 ▲0.0348.39 ▲1.81
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.66 ▼14.88
Media Library /wp-admin/upload.php3.25 ▲0.0337.79 ▼0.65

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Nrby Events
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲14113.65 ▼0.6310.28 ▲8.3722.69 ▼19.91
Dashboard /wp-admin2,216 ▲315.89 ▼0.15106.93 ▼0.0368.71 ▲27.65
Posts /wp-admin/edit.php2,102 ▲132.03 ▼0.0337.02 ▼4.2336.96 ▲0.51
Add New Post /wp-admin/post-new.php6,599 ▲5,06634.75 ▲11.221,127.20 ▲457.6040.40 ▼12.55
Media Library /wp-admin/upload.php1,398 ▲74.23 ▲0.0692.27 ▼12.8075.23 ▲28.29

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests Passed 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 Passed 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 SRP test was a success

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 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === Nrby Events === )
Please take inspiration from this readme.txt

nrby-events/plugin.php 92% from 13 tests

The entry point to "Nrby Events" version 1.0.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("nrby-events.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin28,607 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
JSON30019,442
JavaScript201,3963,3724,424
Sass321922,453
CSS2487222,135
PHP23343153

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.09
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 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
10 PNG files occupy 1.08MB with 0.68MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/OnboardingSuccessful.PNG105.02KB41.03KB▼ 60.93%
images/EventWidgetFinalFrontView.PNG147.86KB44.89KB▼ 69.64%
images/WordPressNrbyLogin.PNG64.79KB28.72KB▼ 55.67%
images/NrbyOnboardingPart1.PNG99.70KB38.12KB▼ 61.76%
images/ImportedEventsView.PNG169.86KB58.73KB▼ 65.43%