84% disable-search-slug

Code Review | Disable Search Slug

WordPress plugin Disable Search Slug scored84%from 54 tests.

About plugin

  • Plugin page: disable-search-slug
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 1.5.0-4.6.0
  • WordPress version: 6.3.1
  • First release: Jul 8, 2016
  • Latest release: Jul 8, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: GaryJ (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,469 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Disable Search Slug
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.06 ▼6.76
Dashboard /wp-admin3.31 ▲0.0148.80 ▼2.23
Posts /wp-admin/edit.php3.36 ▲0.0146.77 ▼7.56
Add New Post /wp-admin/post-new.php5.89 ▲0.0187.98 ▼12.80
Media Library /wp-admin/upload.php3.24 ▲0.0138.25 ▼2.66

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Disable Search Slug
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.071.81 ▼0.1342.97 ▲0.74
Dashboard /wp-admin2,195 ▲155.62 ▼0.0186.30 ▼11.6142.21 ▼0.34
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0336.42 ▼3.4437.43 ▼0.53
Add New Post /wp-admin/post-new.php1,526 ▼023.12 ▼0.42662.58 ▼6.8354.41 ▼10.84
Media Library /wp-admin/upload.php1,397 ▼34.26 ▼0.00103.51 ▲0.7944.44 ▲1.06

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-search-slug/disable-search-slug.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: permalinks, search

disable-search-slug/disable-search-slug.php Passed 13 tests

The main PHP file in "Disable Search Slug" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
81 characters long description:
Stops /search/... URLs from working, resulting in a WordPress 404 page not found.

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
No dangerous file extensions were detected55 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
Markdown227043
PHP142312

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
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%
Functions3
▷ Named functions00.00%
▷ Anonymous functions3100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin