10% bulgarian-search

Code Review | Bulgarian search

WordPress plugin Bulgarian search scored10%from 54 tests.

About plugin

  • Plugin page: bulgarian-search
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Nov 25, 2012
  • Latest release: Dec 16, 2012
  • Number of updates: 5
  • Update frequency: every 4.2 days
  • Top authors: Andon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /936 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
These installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/bulgarian-search/sinn.php+105
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼51.16ms] Passed 4 tests

Analyzing server-side resources used by Bulgarian search
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.435.14 ▼32.74
Dashboard /wp-admin2.05 ▼1.265.81 ▼44.44
Posts /wp-admin/edit.php2.05 ▼1.315.66 ▼36.43
Add New Post /wp-admin/post-new.php2.05 ▼3.845.22 ▼91.03
Media Library /wp-admin/upload.php2.05 ▼1.186.09 ▼27.68

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Bulgarian search
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10213.74 ▼0.814.40 ▲2.8244.64 ▲6.49
Dashboard /wp-admin2,213 ▲245.91 ▲0.9897.86 ▼24.3735.93 ▼9.82
Posts /wp-admin/edit.php2,096 ▲72.02 ▲0.0142.17 ▲6.2335.40 ▲4.07
Add New Post /wp-admin/post-new.php1,536 ▲223.17 ▲0.10688.12 ▲42.5461.47 ▲6.25
Media Library /wp-admin/upload.php1,392 ▲14.33 ▲0.0992.80 ▼7.6842.40 ▼0.85

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/bulgarian-search/sinn.php+105
    Function create_function() is deprecated
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_seachinnapredwidget
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/bulgarian-search/sinn.php:11

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: bulgaria, google, search, search engine, widget

bulgarian-search/sinn.php 92% from 13 tests

The main file in "Bulgarian search" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("bulgarian-search.php" instead of "sinn.php")

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 plugin78 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1182067
JavaScript1107
CSS1004

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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