94% nonce-extender

Code Review | Nonce Extender

WordPress plugin Nonce Extender scored 94% from 54 tests.

About plugin

  • Plugin page: nonce-extender
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7.0-4.7.3
  • WordPress version: 5.8.1
  • First release: Mar 10, 2017
  • Latest release: Mar 10, 2017
  • Number of updates: 3
  • Update frequency: every 3.3 days
  • Top authors: pcfreak30 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 732 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼142.12ms] Passed 4 tests

This is a short check of server-side resources used by Nonce Extender
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0136.94 ▲1.64
Dashboard /wp-admin3.07 ▲0.0245.69 ▼2.51
Posts /wp-admin/edit.php3.12 ▲0.0147.55 ▲2.49
Add New Post /wp-admin/post-new.php5.43 ▼0.0191.61 ▼563.57
Media Library /wp-admin/upload.php3.01 ▲0.0129.11 ▼4.03

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Nonce Extender
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲7315.79 ▲0.218.62 ▼1.3347.65 ▼7.25
Dashboard /wp-admin2,967 ▲335.92 ▼0.11136.67 ▼16.71114.37 ▲3.68
Posts /wp-admin/edit.php2,739 ▲32.72 ▲0.0064.04 ▲0.6589.51 ▼1.10
Add New Post /wp-admin/post-new.php1,672 ▲17218.69 ▲0.24351.79 ▼17.28105.08 ▼8.27
Media Library /wp-admin/upload.php1,807 ▼35.01 ▼0.02137.24 ▼6.39124.07 ▼1.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% 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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/nonce-extender/nonce-extender.php:38

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === nonce-extender === )
Please take inspiration from this readme.txt

nonce-extender/nonce-extender.php Passed 13 tests

The main PHP file in "Nonce Extender" ver. 0.1.0 adds more information about the plugin and also serves as the entry point for this plugin
59 characters long description:
Plugin to allow a configurable nonce security code lifetime

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
Good job! No executable or dangerous file extensions detected22 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161122

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.33
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 Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin