84% solo-search

Code Review | Solo

WordPress plugin Solo scored 84% from 54 tests.

About plugin

  • Plugin page: solo-search
  • Plugin version: 1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 6.3.1
  • First release: Sep 25, 2020
  • Latest release: Jul 22, 2023
  • Number of updates: 31
  • Update frequency: every 33.2 days
  • Top authors: dartiss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 572 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼1.21ms] Passed 4 tests

A check of server-side resources used by Solo
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.41 ▼1.14
Dashboard /wp-admin3.34 ▲0.0443.91 ▼2.52
Posts /wp-admin/edit.php3.39 ▲0.0348.36 ▲1.61
Add New Post /wp-admin/post-new.php5.92 ▲0.0391.21 ▼2.78
Media Library /wp-admin/upload.php3.26 ▲0.0337.22 ▲2.04

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Solo
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6514.48 ▼0.211.74 ▼0.0041.81 ▲0.30
Dashboard /wp-admin2,206 ▲184.84 ▼1.06107.66 ▼4.8741.56 ▲1.48
Posts /wp-admin/edit.php2,089 ▼01.97 ▼0.0239.99 ▲1.2739.71 ▲4.88
Add New Post /wp-admin/post-new.php1,536 ▲323.03 ▼0.11625.83 ▼23.8365.15 ▲12.67
Media Library /wp-admin/upload.php1,388 ▼04.18 ▼0.0292.80 ▼17.6139.46 ▼4.45

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options

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)
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please 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_filter() in wp-content/plugins/solo-search/solo-search.php:54

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)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: single, search, result, solo, title

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

The main file in "Solo" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
45 characters long description:
🔍 Instantly display a single search result

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected78 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1437678

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected