84% neighbourhoodio

Code Review | neighbourhood.io

WordPress plugin neighbourhood.io scored84%from 54 tests.

About plugin

  • Plugin page: neighbourhoodio
  • Plugin version: 1.0.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Mar 21, 2015
  • Latest release: Mar 21, 2015
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: neighbourhoodio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /753 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.58ms] Passed 4 tests

A check of server-side resources used by neighbourhood.io
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.24 ▲0.73
Dashboard /wp-admin3.34 ▼0.0149.29 ▼12.74
Posts /wp-admin/edit.php3.39 ▲0.0348.05 ▼0.13
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.30 ▼10.71
Media Library /wp-admin/upload.php3.27 ▲0.0333.37 ▼2.72

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for neighbourhood.io
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9813.43 ▼0.864.60 ▲2.9043.46 ▲2.61
Dashboard /wp-admin2,209 ▲214.96 ▼0.83101.90 ▲3.2574.89 ▲30.29
Posts /wp-admin/edit.php2,107 ▲182.00 ▼0.0237.50 ▲3.7635.12 ▼1.89
Add New Post /wp-admin/post-new.php1,536 ▲2223.26 ▲5.80730.20 ▲46.1850.89 ▼7.22
Media Library /wp-admin/upload.php1,406 ▲214.17 ▲0.0196.20 ▼4.9577.02 ▲36.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
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

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
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 items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/neighbourhoodio/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

neighbourhoodio/ni.php 92% from 13 tests

The primary PHP file in "neighbourhood.io" version 1.0.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("neighbourhoodio.php" instead of "ni.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
There were no executable files found in this plugin301 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32932301

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 compressed PNG files occupy 0.26MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ni-logo-32i.png0.90KB0.83KB▼ 7.84%
images/ni-logo-16.png0.46KB0.46KB0.00%
images/ni-logo-16i.png0.47KB0.47KB0.00%
images/ni-logo-32.png0.84KB0.83KB▼ 0.70%
images/map.png260.89KB139.50KB▼ 46.53%