10% compound-searcher

Code Review | Compound Searcher

WordPress plugin Compound Searcher scored 10% from 54 tests.

About plugin

  • Plugin page: compound-searcher
  • Plugin version: 0.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-3.8
  • WordPress version: 5.8.1
  • First release: Jan 1, 2014
  • Latest release: Jan 1, 2014
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: gnaka08 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 633 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Compile warning in wp-content/plugins/compound-searcher/compound_searcher.php+28
    declare(encoding=...) ignored because Zend multibyte feature is turned off by settings

Server metrics [RAM: ▲0.12MB] [CPU: ▼141.39ms] Passed 4 tests

A check of server-side resources used by Compound Searcher
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.97 ▲0.1443.45 ▲10.81
Dashboard /wp-admin3.19 ▲0.1348.28 ▼1.40
Posts /wp-admin/edit.php3.29 ▲0.1948.65 ▲1.58
Add New Post /wp-admin/post-new.php5.53 ▲0.1092.73 ▼567.67
Media Library /wp-admin/upload.php3.12 ▲0.1236.95 ▲1.95

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Compound Searcher
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,905 ▲29916.60 ▲1.0212.50 ▲2.8155.07 ▲4.55
Dashboard /wp-admin2,989 ▲585.98 ▼0.03144.64 ▼1.74114.15 ▼2.89
Posts /wp-admin/edit.php2,784 ▲452.68 ▼0.0165.27 ▼12.57104.22 ▲6.93
Add New Post /wp-admin/post-new.php1,628 ▲12821.33 ▲2.63272.45 ▼114.72132.03 ▲16.78
Media Library /wp-admin/upload.php1,851 ▲445.04 ▲0.03167.26 ▲16.34130.46 ▼4.03

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Compile warning in wp-content/plugins/compound-searcher/compound_searcher.php+28
    declare(encoding=...) ignored because Zend multibyte feature is turned off by settings

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Warning
      declare(encoding=...) ignored because Zend multibyte feature is turned off by settings in wp-content/plugins/compound-searcher/compound_searcher.php on line 28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function CompoundSearcher\\add_action() in wp-content/plugins/compound-searcher/compound_searcher.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
1 plugin tags: search

compound-searcher/compound_searcher.php 92% from 13 tests

This is the main PHP file of "Compound Searcher" version 0.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("compound-searcher.php" instead of "compound_searcher.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
Success! There were no dangerous files found in this plugin1,234 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP249142455
HTML1565401
CSS22220155
SVG100133
JavaScript11690

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity24.00
▷ Minimum class complexity24.00
▷ Maximum class complexity24.00
Average method complexity4.50
▷ Minimum method complexity2.00
▷ Maximum method complexity10.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions33
▷ Named functions1442.42%
▷ Anonymous functions1957.58%
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 were not PNG files found in your plugin