83% custom-search-url-nice-search-extension

Code Review | Custom Search URL

WordPress plugin Custom Search URL scored83%from 54 tests.

About plugin

  • Plugin page: custom-search-url...
  • Plugin version: 1...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4
  • WordPress version: 6.3.1
  • First release: Oct 14, 2012
  • Latest release: Oct 14, 2012
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: mccomf (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,108 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

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

Server-side resources used by Custom Search URL
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.69 ▼4.06
Dashboard /wp-admin3.31 ▼0.0448.70 ▼13.28
Posts /wp-admin/edit.php3.36 ▲0.0048.60 ▼2.11
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.05 ▼22.63
Media Library /wp-admin/upload.php3.23 ▲0.0038.08 ▲4.41

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

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

Browser metrics Passed 4 tests

Custom Search URL: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.38 ▼0.051.59 ▲0.0744.62 ▲1.57
Dashboard /wp-admin2,192 ▲125.55 ▼0.1183.12 ▼5.1938.01 ▼3.99
Posts /wp-admin/edit.php2,097 ▼31.99 ▼0.0337.39 ▼3.6832.25 ▼4.30
Add New Post /wp-admin/post-new.php1,535 ▲923.24 ▼0.39674.26 ▼3.9864.70 ▲12.22
Media Library /wp-admin/upload.php1,400 ▼34.14 ▼0.11112.50 ▲8.6753.55 ▲10.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-search-url-nice-search-extension/customsearchurl.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
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 uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: Screenshot #1 (2.) image not found
You can take inspiration from this readme.txt

custom-search-url-nice-search-extension/customsearchurl.php 85% from 13 tests

The principal PHP file in "Custom Search URL" v. 1... is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-search-url-nice-search-extension.php" instead of "customsearchurl.php")
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "1...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin6 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1186

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions1
▷ Named functions1100.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
There are no PNG files in this plugin