10% doms-search

Code Review | DOMS Search

WordPress plugin DOMS Search scored10%from 54 tests.

About plugin

  • Plugin page: doms-search
  • Plugin version: 0.0.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.2.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2019
  • Latest release: Jul 15, 2019
  • Number of updates: 5
  • Update frequency: every 8.0 days
  • Top authors: darwinmateos (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /556 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/doms-search/doms-search.php+171
    Undefined variable: content

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.22ms] Passed 4 tests

A check of server-side resources used by DOMS Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.07 ▼11.94
Dashboard /wp-admin3.32 ▲0.0245.45 ▼3.42
Posts /wp-admin/edit.php3.38 ▲0.0247.76 ▼2.86
Add New Post /wp-admin/post-new.php5.90 ▲0.0293.74 ▼2.65
Media Library /wp-admin/upload.php3.25 ▲0.0234.46 ▲0.95
DOMS Search Menu /wp-admin/options-general.php?page=doms-search3.1930.42

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

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

Browser metrics Passed 4 tests

Checking browser requirements for DOMS Search
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.44 ▲0.081.86 ▲0.0842.43 ▼1.44
Dashboard /wp-admin2,213 ▲255.85 ▼0.02107.03 ▼10.3741.53 ▼2.05
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0440.49 ▲4.6634.66 ▲0.32
Add New Post /wp-admin/post-new.php1,547 ▲1118.34 ▼4.95594.17 ▼37.8662.44 ▲2.04
Media Library /wp-admin/upload.php1,392 ▲74.30 ▲0.1398.71 ▼4.8342.11 ▼0.16
DOMS Search Menu /wp-admin/options-general.php?page=doms-search8362.0624.5327.27

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=doms-search
    • > Notice in wp-content/plugins/doms-search/includes/options.php+89
    Trying to access array offset on value of type bool

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
  • Contributors: The plugin contributors field is missing
The official readme.txt is a good inspiration

doms-search/doms-search.php Passed 13 tests

Analyzing the main PHP file in "DOMS Search" version 0.0.2
74 characters long description:
Plugin to enable filter search by PDF's, Doc's, Images and/or Videos 🚀.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin9,155 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
SVG30128,770
PHP55366316
PO File1252667
CSS2082

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions19
▷ Named functions19100.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