72% wp-nerd-toolkit

Code Review | WP-NERD Toolkit

WordPress plugin WP-NERD Toolkit scored 72% from 54 tests.

About plugin

  • Plugin page: wp-nerd-toolkit
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.9.7
  • WordPress version: 6.3.1
  • First release: Jun 6, 2017
  • Latest release: Jul 13, 2018
  • Number of updates: 15
  • Update frequency: every 26.8 days
  • Top authors: GripsArt (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 802 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.27ms] Passed 4 tests

Server-side resources used by WP-NERD Toolkit
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.38 ▲0.94
Dashboard /wp-admin3.49 ▲0.19214.15 ▲164.30
Posts /wp-admin/edit.php3.38 ▲0.0345.07 ▼2.08
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.09 ▼19.63
Media Library /wp-admin/upload.php3.26 ▲0.0336.21 ▲3.68
Ein-Klick SSL /wp-admin/admin.php?page=wpnerd_ein_klick_ssl3.2831.16
Backups /wp-admin/admin.php?page=wpnerd_backups3.3032.98
WP-NERD Toolkit /wp-admin/admin.php?page=wp-nerd-toolkit/main.php3.2930.70

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 35 new files
Database: 1 new table, 7 new options
New tables
wp_wpner_toolkit
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
jal_db_version
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

WP-NERD Toolkit: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,688 ▼4714.22 ▼0.351.73 ▼0.0642.36 ▲1.74
Dashboard /wp-admin2,077 ▼1115.59 ▼0.4679.06 ▼23.8279.45 ▲31.19
Posts /wp-admin/edit.php2,121 ▲322.01 ▲0.0138.52 ▲0.9234.73 ▲1.83
Add New Post /wp-admin/post-new.php1,549 ▲3018.21 ▼4.88702.53 ▲81.0570.39 ▲20.12
Media Library /wp-admin/upload.php1,411 ▲204.23 ▲0.05100.12 ▲2.0049.84 ▲5.14
Ein-Klick SSL /wp-admin/admin.php?page=wpnerd_ein_klick_ssl8772.0724.3429.85
Backups /wp-admin/admin.php?page=wpnerd_backups9782.0224.0729.70
WP-NERD Toolkit /wp-admin/admin.php?page=wp-nerd-toolkit/main.php1,1192.0225.2827.33

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • jal_db_version
    • widget_theysaidso_widget

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=wpnerd_backups
    • > Notice in wp-content/plugins/wp-nerd-toolkit/inc/backups.php+69
    Undefined variable: set_backup
    • > GET request to /wp-admin/admin.php?page=wpnerd_backups
    • > Notice in wp-content/plugins/wp-nerd-toolkit/inc/backups.php+74
    Undefined variable: wpnerd_crontime
    • > GET request to /wp-admin/admin.php?page=wpnerd_backups
    • > Notice in wp-content/plugins/wp-nerd-toolkit/inc/backups.php+105
    Undefined variable: ftp_password
    • > GET request to /wp-admin/admin.php?page=wpnerd_backups
    • > Notice in wp-content/plugins/wp-nerd-toolkit/inc/backups.php+111
    Undefined variable: backup_ftp
    • > GET request to /wp-admin/admin.php?page=wpnerd_backups
    • > Notice in wp-content/plugins/wp-nerd-toolkit/inc/backups.php+114
    Undefined variable: back_delete_status

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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-nerd-toolkit/main.php
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-nerd-toolkit/maintenance/upgrade.php:5
    • > PHP Notice
      Undefined variable: new_ordner in wp-content/plugins/wp-nerd-toolkit/inc/scripts/backup/delete_backup.php on line 15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed: Please take inspiration from this readme.txt

wp-nerd-toolkit/main.php 85% from 13 tests

This is the main PHP file of "WP-NERD Toolkit" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-nerd-toolkit.php" instead of "main.php")

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
Everything looks great! No dangerous files found in this plugin1,668 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP262381481,231
CSS1114217
PO File14444135
JavaScript17285

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods360.00%
▷ Protected methods240.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/img/wp-nerd-icon.png15.16KB0.91KB▼ 94.02%
inc/img/wp-nerd.png5.91KB3.29KB▼ 44.33%
inc/img/backup_ok.png34.36KB6.53KB▼ 80.99%