89% whereabouts

Code Review | Whereabouts

WordPress plugin Whereabouts scored89%from 54 tests.

About plugin

  • Plugin page: whereabouts
  • Plugin version: 0.7.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.6
  • WordPress version: 6.3.1
  • First release: Sep 10, 2014
  • Latest release: Jul 25, 2023
  • Number of updates: 35
  • Update frequency: every 92.6 days
  • Top authors: florianziegler (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

50+ active /4,215 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.88ms] Passed 4 tests

Server-side resources used by Whereabouts
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1339.64 ▼2.30
Dashboard /wp-admin3.44 ▲0.1350.14 ▼4.02
Posts /wp-admin/edit.php3.55 ▲0.1954.87 ▼0.66
Add New Post /wp-admin/post-new.php6.02 ▲0.1395.39 ▼8.55
Media Library /wp-admin/upload.php3.36 ▲0.1339.83 ▲4.69
Whereabouts /wp-admin/options-general.php?page=whereabouts3.3338.18

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options
widget_whereabouts_user_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Whereabouts
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,079 ▲31814.72 ▲0.401.92 ▲0.1241.59 ▼5.77
Dashboard /wp-admin2,457 ▲2775.57 ▼0.0091.03 ▼4.1147.75 ▲4.97
Posts /wp-admin/edit.php2,106 ▲62.03 ▼0.1040.90 ▼1.2335.48 ▼0.89
Add New Post /wp-admin/post-new.php1,541 ▲1018.11 ▼5.02613.60 ▼3.4866.60 ▲15.49
Media Library /wp-admin/upload.php1,403 ▼04.18 ▼0.07100.69 ▲1.2643.59 ▼1.96
Whereabouts /wp-admin/options-general.php?page=whereabouts1,1452.0424.2670.25

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_whereabouts_user_widget
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

whereabouts/whereabouts.php 92% from 13 tests

"Whereabouts" version 0.7.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 177 characters long)

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 plugin737 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP7231239716
SVG20220
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity7.75
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions15100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
No PNG files were detected