10% destination-after-save

Code Review | Destination After Save

WordPress plugin Destination After Save scored10%from 54 tests.

About plugin

  • Plugin page: destination-after...
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-4.4
  • WordPress version: 6.3.1
  • First release: Apr 29, 2015
  • Latest release: Feb 2, 2016
  • Number of updates: 15
  • Update frequency: every 19.1 days
  • Top authors: robertwhitis (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

10+ active /1,513 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
  • The plugin did not install without errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method destination_after_save::activate() should not be called statically

Server metrics [RAM: ▲0.04MB] [CPU: ▼9.06ms] Passed 4 tests

Server-side resources used by Destination After Save
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0538.04 ▼7.68
Dashboard /wp-admin3.35 ▲0.0150.95 ▼10.85
Posts /wp-admin/edit.php3.40 ▲0.0550.92 ▲3.66
Add New Post /wp-admin/post-new.php5.95 ▲0.0686.45 ▼14.87
Media Library /wp-admin/upload.php3.27 ▲0.0534.06 ▼2.84

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Destination After Save
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,840 ▲7914.48 ▲0.102.19 ▲0.0942.09 ▼5.07
Dashboard /wp-admin2,221 ▲155.85 ▲0.9898.48 ▼17.9341.83 ▼1.42
Posts /wp-admin/edit.php2,100 ▼32.02 ▼0.0340.20 ▲4.1936.71 ▲1.83
Add New Post /wp-admin/post-new.php6,267 ▲4,73425.85 ▲2.65902.83 ▲260.3873.91 ▲10.63
Media Library /wp-admin/upload.php1,397 ▼64.21 ▼0.03100.42 ▼2.8342.03 ▼1.60

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method destination_after_save::uninstall() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/destination-after-save/destination-after-save.php:22

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)
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Screenshots: These screenshots do not have images: #1 (User Profile Setting), #2 (Meta Box Control), #3 (Meta Box Options)
  • Tags: Please delete some tags, you are using 18 tag instead of maximum 10
The official readme.txt might help

destination-after-save/destination-after-save.php 92% from 13 tests

The main file in "Destination After Save" v. 3.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 detected149 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP214812149

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.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

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png33.00KB8.50KB▼ 74.23%
screenshot-3.png26.88KB7.90KB▼ 70.60%
screenshot-1.png40.01KB12.61KB▼ 68.48%