68% wp-dont-go

Code Review | WP Don't GO

WordPress plugin WP Don't GO scored68%from 54 tests.

About plugin

  • Plugin page: wp-dont-go
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.8.1
  • WordPress version: 6.3.1
  • First release: Aug 8, 2017
  • Latest release: Sep 13, 2017
  • Number of updates: 4
  • Update frequency: every 9.0 days
  • Top authors: truser (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

50+ active /1,108 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▼0.93MB] [CPU: ▼32.49ms] Passed 4 tests

An overview of server-side resources used by WP Don't GO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.41 ▼11.00
Dashboard /wp-admin3.01 ▼0.2924.28 ▼23.39
Posts /wp-admin/edit.php3.01 ▼0.3423.39 ▼23.81
Add New Post /wp-admin/post-new.php3.01 ▼2.8724.59 ▼68.99
Media Library /wp-admin/upload.php3.01 ▼0.2221.70 ▼13.75
WP Don't GO /wp-admin/admin.php?page=dontgoSettings3.0123.74

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
dontgoFavicon
dontgoDelay
dontgoTitle
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Don't GO
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.28 ▼1.104.80 ▲3.0342.10 ▼1.41
Dashboard /wp-admin2,235 ▲446.07 ▲1.19104.20 ▼1.9186.25 ▲43.35
Posts /wp-admin/edit.php2,121 ▲322.03 ▲0.0137.56 ▲2.3240.46 ▲2.53
Add New Post /wp-admin/post-new.php1,542 ▼223.20 ▲0.11770.65 ▲110.4467.76 ▲16.62
Media Library /wp-admin/upload.php1,414 ▲234.21 ▼0.0797.65 ▲0.0866.72 ▲24.08
WP Don't GO /wp-admin/admin.php?page=dontgoSettings9202.0826.0140.49

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
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/wp-dont-go/admin_page.php+12
    Undefined index: wpajans
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_recent-comments
    • dontgoTitle
    • db_upgraded
    • widget_theysaidso_widget
    • dontgoDelay
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • dontgoFavicon

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=dontgoSettings
    • > Notice in wp-content/plugins/wp-dont-go/admin_page.php+12
    Undefined index: wpajans
    • > GET request to /wp-admin/admin.php?page=dontgoSettings
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% 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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dont-go/admin_page.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-dont-go/dontgo.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-dont-go/init.php:7

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

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: title change differant tab, wordpress favicon, tab focus, wordpress do not go

wp-dont-go/dontgo.php 92% from 13 tests

The main PHP file in "WP Don't GO" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-dont-go.php" instead of "dontgo.php")

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
Everything looks great! No dangerous files found in this plugin148 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP3713104
CSS11228
JavaScript20016

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
3 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/icon.png0.72KB0.57KB▼ 21.73%
assets/img/wpajansLogo.png23.26KB3.63KB▼ 84.38%
assets/img/wpajans.png0.60KB0.63KB0.00%