90% better-serbian-search

Code Review | Better Serbian Search

WordPress plugin Better Serbian Search scored90%from 54 tests.

About plugin

  • Plugin page: better-serbian-se...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.4
  • WordPress version: 6.3.1
  • First release: Nov 26, 2015
  • Latest release: Nov 26, 2015
  • Number of updates: 3
  • Update frequency: every 5.0 days
  • Top authors: dimadin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,194 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
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Better Serbian Search
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0245.42 ▲3.07
Dashboard /wp-admin3.32 ▲0.0247.77 ▼7.49
Posts /wp-admin/edit.php3.37 ▲0.0247.44 ▼5.92
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.72 ▼21.81
Media Library /wp-admin/upload.php3.24 ▲0.0133.96 ▼3.79

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Better Serbian Search: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.26 ▼0.171.69 ▼0.1644.53 ▼1.28
Dashboard /wp-admin2,195 ▲155.63 ▲0.0390.55 ▼3.4440.84 ▼3.56
Posts /wp-admin/edit.php2,103 ▲32.04 ▲0.0541.51 ▲3.1135.48 ▲0.18
Add New Post /wp-admin/post-new.php1,545 ▼1023.26 ▲5.17651.52 ▲6.3150.52 ▼20.47
Media Library /wp-admin/upload.php1,394 ▼64.20 ▼0.0599.58 ▼11.6343.61 ▼4.72

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
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 just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
2 plugin tags: search, serbian

better-serbian-search/better-serbian-search.php 92% from 13 tests

The main file in "Better Serbian Search" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Domain Path: The domain path is invalid: folder "/languages/" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin308 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP348223308

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity13.33
▷ Minimum class complexity1.00
▷ Maximum class complexity27.00
Average method complexity3.85
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods753.85%
▷ Protected methods646.15%
▷ 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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin