84% goodbye-please

Code Review | Goodbye Please

WordPress plugin Goodbye Please scored84%from 54 tests.

About plugin

  • Plugin page: goodbye-please
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.7.2
  • WordPress version: 6.3.1
  • First release: Oct 28, 2016
  • Latest release: May 26, 2021
  • Number of updates: 16
  • Update frequency: every 104.4 days
  • Top authors: mackensen (68.75%)zitoa (37.5%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,580 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.52ms] Passed 4 tests

Analyzing server-side resources used by Goodbye Please
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.61 ▼4.77
Dashboard /wp-admin3.33 ▲0.0250.93 ▼3.92
Posts /wp-admin/edit.php3.38 ▲0.0254.60 ▲0.97
Add New Post /wp-admin/post-new.php5.91 ▲0.0298.02 ▼0.23
Media Library /wp-admin/upload.php3.25 ▲0.0235.13 ▼5.15

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Goodbye Please
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.34 ▼0.231.67 ▼0.0444.87 ▲3.68
Dashboard /wp-admin2,208 ▲315.53 ▼0.0983.11 ▼14.1240.14 ▼0.44
Posts /wp-admin/edit.php2,116 ▲161.95 ▼0.0539.01 ▲1.2135.66 ▼1.43
Add New Post /wp-admin/post-new.php1,539 ▲1122.94 ▼0.22637.10 ▼43.5853.81 ▲3.25
Media Library /wp-admin/upload.php1,407 ▲44.20 ▲0.06100.67 ▼10.5244.92 ▼1.76

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
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options

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 everything seems fine, this is not 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
The following issues need your attention
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/goodbye-please/goodbye-please.php:84

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
1 plugin tags: redirect

goodbye-please/goodbye-please.php Passed 13 tests

Analyzing the main PHP file in "Goodbye Please" version 1.0.3
74 characters long description:
This plugin redirects all public-facing page requests to an existing page.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected67 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121267

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.26
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.43
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods7100.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
PNG images were not found in this plugin