73% where-im-going

Code Review | Where I'm Going

WordPress plugin Where I'm Going scored73%from 54 tests.

About plugin

  • Plugin page: where-im-going
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: May 3, 2013
  • Latest release: Jun 3, 2013
  • Number of updates: 10
  • Update frequency: every 40.0 days
  • Top authors: skustes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,532 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

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

Server-side resources used by Where I'm Going
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.24 ▼2.70
Dashboard /wp-admin3.33 ▲0.0352.88 ▼6.13
Posts /wp-admin/edit.php3.44 ▲0.0949.11 ▼0.89
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.09 ▼10.20
Media Library /wp-admin/upload.php3.25 ▲0.0237.24 ▲0.52
Settings /wp-admin/admin.php?page=wig_settings3.2535.39
My Destinations /wp-admin/admin.php?page=wig_destinations3.2638.34
Instructions /wp-admin/admin.php?page=whereimgoing3.2534.51

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 45 new files
Database: 1 new table, 8 new options
New tables
wp_where_im_going
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
wig_options
widget_theysaidso_widget
db_upgraded
ppd_wig_options
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Where I'm Going
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲6614.35 ▼0.001.77 ▼0.0543.53 ▲5.85
Dashboard /wp-admin2,233 ▲555.62 ▼0.0986.57 ▼26.5437.43 ▼6.62
Posts /wp-admin/edit.php2,138 ▲382.02 ▲0.0534.91 ▼5.4436.62 ▲0.64
Add New Post /wp-admin/post-new.php1,558 ▲3223.11 ▼0.10632.60 ▼38.2276.93 ▲5.81
Media Library /wp-admin/upload.php1,438 ▲384.13 ▼0.11102.92 ▼8.2945.10 ▼1.58
Settings /wp-admin/admin.php?page=wig_settings8532.0428.1125.26
My Destinations /wp-admin/admin.php?page=wig_destinations9162.0123.9534.63
Instructions /wp-admin/admin.php?page=whereimgoing8972.0022.7429.37

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • ppd_wig_options
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 25% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/where-im-going/views/common/instructions_shortcode.php
  • 12× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Notice
      Undefined index: destination_id in wp-content/plugins/where-im-going/views/destination/edit_destination.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/where-im-going/classes/class.paypal_donation/class.paypal_donation.php:137
    • > PHP Fatal error
      Uncaught Error: Class 'wig_destination' not found in wp-content/plugins/where-im-going/classes/class.destination_form.php:6
    • > PHP Notice
      Undefined index: destination_id in wp-content/plugins/where-im-going/views/destination/delete_destination.php on line 13
    • > PHP Fatal error
      Uncaught Error: Class 'wig_destination_form' not found in wp-content/plugins/where-im-going/views/destination/edit_destination.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/where-im-going/classes/class.paypal_donation/class.paypal_donation.php:137
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wig_output_settings_form() in wp-content/plugins/where-im-going/views/common/wig_settings.php:33
    • > PHP Fatal error
      Uncaught Error: Class 'wig_destination_form' not found in wp-content/plugins/where-im-going/views/destination/add_destination.php:35
    • > PHP Notice
      Undefined index: wig_hidden_delete in wp-content/plugins/where-im-going/views/destination/delete_destination.php on line 3
    • > PHP Fatal error
      Uncaught Error: Class 'wig_destination' not found in wp-content/plugins/where-im-going/views/destination/delete_destination.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=whereimgoing
    • > Network (severe)
    wp-content/plugins/where-im-going/anytime/anytime.css?ver=2013403 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (http://www.nuttymango.com/wp-content/uploads/2013/04/wig-main-page.png), #2 (http://www.nuttymango.com/wp-content/uploads/2013/04/wig-add-destination.png)
The official readme.txt is a good inspiration

where-im-going/where-im-going.php Passed 13 tests

The main PHP file in "Where I'm Going" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
135 characters long description:
Where are you now? Where are you going? Where have you been? Keep your readers up to date on your current, past, and future travels.

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
No dangerous file extensions were detected3,182 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP203565331,608
JavaScript42022931,572
CSS2002

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity25.20
▷ Minimum class complexity6.00
▷ Maximum class complexity47.00
Average method complexity3.69
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods45
▷ Static methods36.67%
▷ Public methods2862.22%
▷ Protected methods00.00%
▷ Private methods1737.78%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
16 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/ui-bg_inset-hard_100_f5f8f9_1x100.png0.33KB0.13KB▼ 60.36%
images/ui-icons_f9bd01_256x240.png4.44KB4.17KB▼ 6.02%
images/ui-bg_flat_0_aaaaaa_40x100.png0.21KB0.08KB▼ 58.96%
images/ui-bg_glass_85_dfeffc_1x400.png0.33KB0.16KB▼ 53.08%
images/ui-bg_glass_75_d0e5f5_1x400.png0.33KB0.16KB▼ 52.38%