10% wp-opensearch-advance

Code Review | WP Opensearch Advance

WordPress plugin WP Opensearch Advance scored10%from 54 tests.

About plugin

  • Plugin page: wp-opensearch-adv...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Sep 3, 2014
  • Latest release: Sep 17, 2014
  • Number of updates: 7
  • Update frequency: every 2.1 days
  • Top authors: nguyenvanduocit (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,094 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Wpos_Code::wpos_activate() should not be called statically

Server metrics [RAM: ▲0.21MB] [CPU: ▼14.85ms] Passed 4 tests

An overview of server-side resources used by WP Opensearch Advance
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.84 ▲0.3843.55 ▼1.09
Dashboard /wp-admin3.54 ▲0.2036.62 ▼31.84
Posts /wp-admin/edit.php3.67 ▲0.3143.41 ▼4.87
Add New Post /wp-admin/post-new.php5.83 ▼0.0585.33 ▼18.60
Media Library /wp-admin/upload.php3.61 ▲0.3834.00 ▼4.07
OpenSearch /wp-admin/options-general.php?page=opensearch3.5334.35

Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] 67% from 3 tests

A short overview of filesystem and database impact
It is recommended to fix the following issues
  • Illegal file modification detected: 1 file (0.69KB) outside of "wp-content/plugins/wp-opensearch-advance/" and "wp-content/uploads/"
    • (modified) .htaccess
Filesystem: 21 new files
Database: no new tables, 7 new options
New WordPress options
wpos_options
widget_recent-comments
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for WP Opensearch Advance
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲2314.17 ▼0.451.55 ▼0.5642.12 ▼1.16
Dashboard /wp-admin2,202 ▲285.57 ▼0.1186.84 ▼6.9042.79 ▼0.09
Posts /wp-admin/edit.php2,104 ▲41.98 ▲0.0240.43 ▲2.6036.54 ▲2.45
Add New Post /wp-admin/post-new.php1,531 ▲522.99 ▼0.70631.20 ▲12.0355.34 ▼8.63
Media Library /wp-admin/upload.php1,404 ▲44.19 ▼0.02100.44 ▼7.3940.15 ▼6.41
OpenSearch /wp-admin/options-general.php?page=opensearch1,1762.2841.9139.46

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method Wpos_Code::wpos_deactivate() should not be called statically
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=opensearch
    • > User deprecated in wp-includes/functions.php+5828
    Hook contextual_help is deprecated since version 3.3.0! Use get_current_screen()->add_help_tab(), get_current_screen()->remove_help_tab() instead.
    • > GET request to /wp-admin/options-general.php?page=opensearch
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=opensearch
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-opensearch-advance/scb/Widget.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-opensearch-advance/scb/load.php:32
    • > PHP Fatal error
      Uncaught Error: Class 'scbBoxesPage' not found in wp-content/plugins/wp-opensearch-advance/wpos_AdminPage.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/wp-opensearch-advance/scb/BoxesPage.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% 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
Attributes that require attention:
  • Screenshots: Add an image for screenshot #1 (Adminpage)
Please take inspiration from this readme.txt

wp-opensearch-advance/plugin.php 92% from 13 tests

The main PHP script in "WP Opensearch Advance" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-opensearch-advance.php" instead of "plugin.php")

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
No dangerous file extensions were detected2,005 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP166298741,979
JSON10022
Markdown1204

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity9.92
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.06
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes24
▷ Abstract classes520.83%
▷ Concrete classes1979.17%
▷ Final classes00.00%
Methods217
▷ Static methods5625.81%
▷ Public methods17882.03%
▷ Protected methods2812.90%
▷ Private methods115.07%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin