10% manualsearcher

Code Review | ManualSearcher

WordPress plugin ManualSearcher scored10%from 54 tests.

About plugin

  • Plugin page: manualsearcher
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.10-5.4.1
  • WordPress version: 6.3.1
  • First release: May 13, 2016
  • Latest release: May 27, 2020
  • Number of updates: 33
  • Update frequency: every 44.7 days
  • Top authors: mrhaanraadts (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /897 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/manualsearcher/manualsearcher-widget.php+21
    Methods with the same name as their class will not be constructors in a future version of PHP; hkms_ManualSearcher has a deprecated constructor

Server metrics [RAM: ▼1.85MB] [CPU: ▼59.61ms] Passed 4 tests

Server-side resources used by ManualSearcher
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.314.92 ▼38.43
Dashboard /wp-admin2.17 ▼1.176.37 ▼60.74
Posts /wp-admin/edit.php2.17 ▼1.185.91 ▼43.43
Add New Post /wp-admin/post-new.php2.17 ▼3.717.30 ▼95.85
Media Library /wp-admin/upload.php2.17 ▼1.068.99 ▼22.93

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_manualsearcher
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by ManualSearcher
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,817 ▲7113.25 ▼1.051.76 ▼0.1143.76 ▲5.12
Dashboard /wp-admin2,221 ▲545.85 ▲0.2897.84 ▼19.8038.10 ▼3.76
Posts /wp-admin/edit.php2,100 ▼02.05 ▲0.0540.83 ▲3.7636.93 ▲0.68
Add New Post /wp-admin/post-new.php1,554 ▲2318.45 ▼4.93649.98 ▼21.2158.33 ▲11.48
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0697.41 ▼13.1343.40 ▼4.28

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/manualsearcher/manualsearcher-widget.php+21
    Methods with the same name as their class will not be constructors in a future version of PHP; hkms_ManualSearcher has a deprecated constructor
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_manualsearcher
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === manualsearcher === )
You can take inspiration from this readme.txt

manualsearcher/manualsearcher-widget.php 92% from 13 tests

The principal PHP file in "ManualSearcher" v. 1.4 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("manualsearcher.php" instead of "manualsearcher-widget.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 detected234 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP23528194
CSS26040

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity5.50
▷ Minimum method complexity1.00
▷ Maximum method complexity13.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%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
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
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/logo_handleidingkwijt.png16.42KB3.88KB▼ 76.36%
images/logo_manuall.png6.68KB3.52KB▼ 47.29%