84% here

Code Review | Here

WordPress plugin Here scored84%from 54 tests.

About plugin

  • Plugin page: here
  • Plugin version: 1.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5.0
  • WordPress version: 6.3.1
  • First release: Mar 16, 2016
  • Latest release: Mar 21, 2016
  • Number of updates: 8
  • Update frequency: every 0.5 days
  • Top authors: henry.wright (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,005 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▲2.55ms] Passed 4 tests

An overview of server-side resources used by Here
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.09 ▲1.25
Dashboard /wp-admin3.32 ▲0.0255.35 ▼0.48
Posts /wp-admin/edit.php3.37 ▲0.0153.27 ▲4.95
Add New Post /wp-admin/post-new.php5.90 ▲0.0197.59 ▲4.47
Media Library /wp-admin/upload.php3.24 ▲0.0143.62 ▲9.23

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Here
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲4513.27 ▼1.371.67 ▼0.2942.25 ▼2.28
Dashboard /wp-admin2,209 ▲354.86 ▼1.04108.26 ▼5.0442.12 ▼4.81
Posts /wp-admin/edit.php2,089 ▲141.99 ▲0.0038.60 ▲2.9437.28 ▲2.05
Add New Post /wp-admin/post-new.php1,547 ▲2718.33 ▼4.80597.79 ▼60.4372.32 ▲12.99
Media Library /wp-admin/upload.php1,388 ▲64.14 ▼0.0796.90 ▲1.3144.57 ▲4.45

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
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/here/php/filters.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/here/php/actions.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/here/php/actions.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: status, users, activity

here/here.php Passed 13 tests

"Here" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
44 characters long description:
See who's online now on your WordPress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected87 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP53313482
CSS2005

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/dot.png0.34KB0.28KB▼ 16.43%