10% nje-box-title-link-widget

Code Review | NJE Box Title Link Widget

WordPress plugin NJE Box Title Link Widget scored10%from 54 tests.

About plugin

  • Plugin page: nje-box-title-lin...
  • Plugin version: 1.4.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 4, 2017
  • Latest release: Feb 8, 2017
  • Number of updates: 32
  • Update frequency: every 0.1 days
  • Top authors: nje (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /769 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The following installer errors require your attention
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/nje-box-title-link-widget/nje-box-title-link-widget.php+143
    Function create_function() is deprecated

Server metrics [RAM: ▼1.90MB] [CPU: ▼50.41ms] Passed 4 tests

An overview of server-side resources used by NJE Box Title Link Widget
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.385.43 ▼34.96
Dashboard /wp-admin2.11 ▼1.205.75 ▼37.97
Posts /wp-admin/edit.php2.11 ▼1.256.06 ▼47.71
Add New Post /wp-admin/post-new.php2.11 ▼3.787.04 ▼81.00
Media Library /wp-admin/upload.php2.11 ▼1.135.16 ▼33.90

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

A short overview of filesystem and database impact
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_recent-posts
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_nje_box_title_link_widget
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for NJE Box Title Link Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.72 ▲0.251.84 ▲0.2842.57 ▲2.97
Dashboard /wp-admin2,195 ▲185.61 ▼0.0784.39 ▼8.0838.53 ▼2.12
Posts /wp-admin/edit.php2,103 ▲32.05 ▲0.0340.23 ▼1.1337.80 ▲0.30
Add New Post /wp-admin/post-new.php1,528 ▼023.08 ▲0.05681.36 ▼1.1353.50 ▼7.24
Media Library /wp-admin/upload.php1,397 ▼34.20 ▲0.0898.62 ▼22.5743.85 ▼6.04

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/nje-box-title-link-widget/nje-box-title-link-widget.php+143
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_nje_box_title_link_widget
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at 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/nje-box-title-link-widget/nje-box-title-link-widget.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: widget

nje-box-title-link-widget/nje-box-title-link-widget.php Passed 13 tests

"NJE Box Title Link Widget" version 1.4.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
109 characters long description:
A simple plugin that lets user add a widget that includes a box with title, link, button text and description

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin141 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1153599
CSS111642

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin