89% did-you-mean

Code Review | Did You Mean

WordPress plugin Did You Mean scored 89% from 54 tests.

About plugin

  • Plugin page: did-you-mean
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.7
  • WordPress version: 6.3.1
  • First release: Feb 28, 2014
  • Latest release: Mar 2, 2014
  • Number of updates: 10
  • Update frequency: every 0.2 days
  • Top authors: JasmanXcrew (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active / 2,176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

An overview of server-side resources used by Did You Mean
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.71 ▼2.32
Dashboard /wp-admin3.32 ▲0.0248.20 ▼9.01
Posts /wp-admin/edit.php3.37 ▲0.0152.84 ▼3.17
Add New Post /wp-admin/post-new.php5.90 ▲0.01101.15 ▼14.88
Media Library /wp-admin/upload.php3.24 ▲0.0137.75 ▲4.44

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_dym_sidebar

Browser metrics Passed 4 tests

This is an overview of browser requirements for Did You Mean
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7314.62 ▲0.311.74 ▼0.6651.58 ▲3.85
Dashboard /wp-admin2,213 ▲285.02 ▲0.17116.43 ▼1.3743.09 ▼8.30
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0240.70 ▼2.5836.16 ▼4.76
Add New Post /wp-admin/post-new.php1,518 ▼723.42 ▲0.17719.46 ▲63.0269.98 ▲19.86
Media Library /wp-admin/upload.php1,395 ▲74.18 ▼0.06115.59 ▲5.8854.80 ▲4.02

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_dym_sidebar
    • db_upgraded

Smoke tests Passed 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 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

did-you-mean/index.php 85% from 13 tests

The primary PHP file in "Did You Mean" version 1.6 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("did-you-mean.php" instead of "index.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 184 characters long)

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
Everything looks great! No dangerous files found in this plugin192 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP35015161
JavaScript12020
CSS20411

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.00
▷ Minimum class complexity8.00
▷ Maximum class complexity10.00
Average method complexity3.67
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png13.92KB6.46KB▼ 53.63%
screenshot-1.png7.47KB3.58KB▼ 52.06%
screenshot-3.png10.62KB6.29KB▼ 40.77%