94% did-you-mean-by-serverlin

Code Review | Did you mean by ServerLin

WordPress plugin Did you mean by ServerLin scored 94% from 54 tests.

About plugin

  • Plugin page: did-you-mean-by-s...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8
  • WordPress version: 5.8.1
  • First release: Nov 11, 2016
  • Latest release: Jun 12, 2017
  • Number of updates: 12
  • Update frequency: every 17.8 days
  • Top authors: serverlin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 778 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

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

Analyzing server-side resources used by Did you mean by ServerLin
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1332.38 ▼0.29
Dashboard /wp-admin3.07 ▲0.0144.98 ▼8.07
Posts /wp-admin/edit.php3.12 ▲0.0150.04 ▼0.40
Add New Post /wp-admin/post-new.php5.43 ▼0.0191.27 ▼594.49
Media Library /wp-admin/upload.php3.01 ▲0.0135.26 ▼4.04

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Did you mean by ServerLin
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲7315.76 ▲0.247.65 ▼0.7150.28 ▼2.44
Dashboard /wp-admin2,989 ▲585.94 ▼0.02149.29 ▼2.90107.51 ▼5.25
Posts /wp-admin/edit.php2,739 ▼02.70 ▲0.0173.80 ▲8.0792.53 ▼7.43
Add New Post /wp-admin/post-new.php1,615 ▼6821.22 ▲2.45293.77 ▼97.74104.17 ▼18.19
Media Library /wp-admin/upload.php1,810 ▼04.99 ▼0.03156.21 ▼1.09127.82 ▲6.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/did-you-mean-by-serverlin/did-you-mean-by-serverlin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === did-you-mean-by-serverlin === )
You can look at the official readme.txt

did-you-mean-by-serverlin/did-you-mean-by-serverlin.php Passed 13 tests

The entry point to "Did you mean by ServerLin" version 1.2 is a PHP file that has certain tags in its header comment area
85 characters long description:
This plugin will show Google like did you mean feature on your WordPress search page.

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
There were no executable files found in this plugin34 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2181134

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin