83% whereami

Code Review | Where Am I

WordPress plugin Where Am I scored 83% from 54 tests.

About plugin

  • Plugin page: whereami
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.2.0-4.8
  • WordPress version: 6.3.1
  • First release: Dec 28, 2015
  • Latest release: Dec 28, 2015
  • Number of updates: 4
  • Update frequency: every 132.2 days
  • Top authors: BjornW (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 805 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
Installer ran successfully

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

A check of server-side resources used by Where Am I
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.12 ▲1.02
Dashboard /wp-admin3.31 ▲0.0145.76 ▼7.06
Posts /wp-admin/edit.php3.36 ▲0.0146.77 ▲0.70
Add New Post /wp-admin/post-new.php5.89 ▲0.01131.74 ▲44.18
Media Library /wp-admin/upload.php3.23 ▲0.0032.06 ▼1.29

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

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

Browser metrics Passed 4 tests

Where Am I: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲7113.29 ▼1.461.77 ▲0.0538.25 ▼9.09
Dashboard /wp-admin2,206 ▲155.79 ▲0.91101.53 ▼9.4538.54 ▼8.01
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0638.76 ▼0.2135.32 ▼2.51
Add New Post /wp-admin/post-new.php1,534 ▼423.28 ▲0.39585.65 ▼0.8648.52 ▼10.43
Media Library /wp-admin/upload.php1,391 ▲64.21 ▼0.0299.47 ▼5.1642.00 ▼1.93

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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 items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/whereami/where-am-i.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot)
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === whereami === )
You can look at the official readme.txt

whereami/where-am-i.php 92% from 13 tests

"Where Am I" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("whereami.php" instead of "where-am-i.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected17 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP162117

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Methods2
▷ Static methods00.00%
▷ Public methods2100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin