79% never-let-me-go

Code Review | Never Let Me Go

WordPress plugin Never Let Me Go scored79%from 54 tests.

About plugin

  • Plugin page: never-let-me-go
  • Plugin version: 1.2.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 6, 2011
  • Latest release: Oct 27, 2020
  • Number of updates: 27
  • Update frequency: every 122.6 days
  • Top authors: Takahashi_Fumiki (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /10,093 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
Installer ran successfully

Server metrics [RAM: ▲0.19MB] [CPU: ▼1.06ms] Passed 4 tests

Server-side resources used by Never Let Me Go
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1941.41 ▲2.08
Dashboard /wp-admin3.52 ▲0.2148.68 ▼0.78
Posts /wp-admin/edit.php3.60 ▲0.2550.47 ▲4.03
Add New Post /wp-admin/post-new.php6.07 ▲0.1986.90 ▼9.48
Media Library /wp-admin/upload.php3.41 ▲0.1942.89 ▲3.92
Resign Setting /wp-admin/options-general.php?page=nlmg3.4437.04

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Never Let Me Go
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲1414.24 ▼0.351.74 ▲0.0338.05 ▼2.28
Dashboard /wp-admin2,203 ▲355.56 ▼0.0584.64 ▼1.4937.38 ▼4.09
Posts /wp-admin/edit.php2,111 ▲142.00 ▲0.0233.73 ▼2.0735.71 ▼1.02
Add New Post /wp-admin/post-new.php1,536 ▼123.40 ▲5.14680.28 ▲46.6856.38 ▼20.46
Media Library /wp-admin/upload.php1,414 ▲174.16 ▼0.0198.19 ▼4.2644.16 ▲0.70
Resign Setting /wp-admin/options-general.php?page=nlmg1,2662.1033.0832.32

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/never-let-me-go/never-let-me-go.php
  • 8× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'NeverLetMeGo\\Pattern\\Application' not found in wp-content/plugins/never-let-me-go/src/NeverLetMeGo/Admin.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'NeverLetMeGo\\Pattern\\Application' not found in wp-content/plugins/never-let-me-go/src/NeverLetMeGo/Page.php:13
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/never-let-me-go/templates/setting.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/never-let-me-go/src/NeverLetMeGo/Command.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'NeverLetMeGo\\Pattern\\Singleton' not found in wp-content/plugins/never-let-me-go/src/NeverLetMeGo/Utility/Input.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'NeverLetMeGo\\Pattern\\Application' not found in wp-content/plugins/never-let-me-go/src/NeverLetMeGo.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'NeverLetMeGo\\Pattern\\Application' not found in wp-content/plugins/never-let-me-go/src/NeverLetMeGo/WooCommerce.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'NeverLetMeGo\\Pattern\\Singleton' not found in wp-content/plugins/never-let-me-go/src/NeverLetMeGo/Pattern/Application.php:22

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: account, delete

never-let-me-go/never-let-me-go.php Passed 13 tests

The primary PHP file in "Never Let Me Go" version 1.2.2 is used by WordPress to initiate all plugin functionality
54 characters long description:
If someone wants to leave your WordPress, let them go.

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 plugin1,797 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
PHP222966721,358
PO File186132229
JavaScript5191987
JSON20060
Sass26053
Markdown1408
CSS2222

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity13.58
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes12
▷ Abstract classes18.33%
▷ Concrete classes1191.67%
▷ Final classes00.00%
Methods73
▷ Static methods1419.18%
▷ Public methods6690.41%
▷ Protected methods68.22%
▷ Private methods11.37%
Functions11
▷ Named functions545.45%
▷ Anonymous functions654.55%
Constants3
▷ Global constants3100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon-nlmg.png1.80KB1.76KB▼ 2.01%
dist/img/icon-nlmg.png1.75KB1.76KB0.00%