78% nilly

Code Review | Nilly

WordPress plugin Nilly scored78%from 54 tests.

About plugin

  • Plugin page: nilly
  • Plugin version: 1.3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.9
  • WordPress version: 6.3.1
  • First release: Jul 21, 2021
  • Latest release: Feb 24, 2022
  • Number of updates: 13
  • Update frequency: every 16.9 days
  • Top authors: lyoone (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /483 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼8.45ms] Passed 4 tests

This is a short check of server-side resources used by Nilly
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0550.73 ▲9.25
Dashboard /wp-admin3.36 ▲0.0548.69 ▲0.02
Posts /wp-admin/edit.php3.47 ▲0.1148.64 ▼0.96
Add New Post /wp-admin/post-new.php5.96 ▲0.0790.76 ▼38.41
Media Library /wp-admin/upload.php3.28 ▲0.0541.76 ▲5.55

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Nilly
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,891 ▲12013.39 ▼0.9010.82 ▲8.5540.87 ▼2.90
Dashboard /wp-admin2,215 ▲385.51 ▼0.1489.76 ▼15.4639.49 ▼14.78
Posts /wp-admin/edit.php2,120 ▲202.03 ▲0.0533.25 ▼3.7234.23 ▼0.23
Add New Post /wp-admin/post-new.php1,543 ▲1723.32 ▼0.17670.74 ▼61.8761.76 ▲3.92
Media Library /wp-admin/upload.php1,414 ▲144.23 ▲0.0397.39 ▼8.0249.56 ▲4.34

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/nilly/public/partials/nilly-public-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/nilly/admin/partials/nilly-admin-display.php:17

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

readme.txt 81% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === nilly === )
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Donate link: Invalid url: "www.lyo.one"
Please take inspiration from this readme.txt

nilly/nilly.php Passed 13 tests

"Nilly" version 1.3.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
134 characters long description:
This plugin adds the lightweight nilly code directly to your footer. For simple & fast real-time website analytics that belong to you.

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
Everything looks great! No dangerous files found in this plugin394 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP12141551217
PO File34236171
JavaScript24546
CSS2080

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity1.57
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.15
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods27
▷ Static methods27.41%
▷ Public methods2385.19%
▷ Protected methods00.00%
▷ Private methods414.81%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin