10% easyfullsearch

Code Review | EasyfullsearchWP

WordPress plugin EasyfullsearchWP scored10%from 54 tests.

About plugin

  • Plugin page: easyfullsearch
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.6.1
  • WordPress version: 6.3.1
  • First release: Nov 30, 2016
  • Latest release: Dec 1, 2016
  • Number of updates: 16
  • Update frequency: every 0.8 days
  • Top authors: mjarleton (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /896 total downloads

Benchmarks

Plugin footprint 57% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/easyfullsearch/vendor/easyfullsearch/efs/lib/efs_index_class.php+3221
    The each() function is deprecated. This message will be suppressed on further calls

Server metrics [RAM: ▲1.99MB] [CPU: ▲9.74ms] Passed 4 tests

An overview of server-side resources used by EasyfullsearchWP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /5.50 ▲2.0459.98 ▲15.67
Dashboard /wp-admin5.33 ▲2.0366.50 ▲6.11
Posts /wp-admin/edit.php5.38 ▲2.0266.01 ▲13.33
Add New Post /wp-admin/post-new.php7.85 ▲1.96113.83 ▲3.84
Media Library /wp-admin/upload.php5.19 ▲1.9661.97 ▲23.79

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

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • Try to limit filesystem usage to 25MB (currently using 356.35MB)
Filesystem: 102 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
easyfullsearchWP_options
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by EasyfullsearchWP
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.51 ▼0.141.77 ▲0.1642.32 ▲2.18
Dashboard /wp-admin2,196 ▲195.51 ▼0.0788.32 ▼4.4841.05 ▲0.23
Posts /wp-admin/edit.php2,101 ▼21.99 ▼0.0238.32 ▼0.6536.08 ▲1.83
Add New Post /wp-admin/post-new.php1,529 ▲321.97 ▼1.18724.36 ▲97.5757.24 ▲4.97
Media Library /wp-admin/upload.php1,404 ▲14.15 ▼0.10111.46 ▲10.1347.46 ▲4.09
Easy Full Search /wp-admin/easyfullsearchWP.php260.420.1614.42

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 does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please take a look at the following user-side issues
    • > GET request to /wp-admin/easyfullsearchWP.php
    • > Network (severe)
    wp-admin/easyfullsearchWP.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 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: relevance, search, better search, advanced, filter weighted

easyfullsearch/easyfullsearchWP.php 77% from 13 tests

This is the main PHP file of "EasyfullsearchWP" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("easyfullsearch.php" instead of "easyfullsearchWP.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin11,147 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP91,5723,03810,191
HTML13160692
PO File1145174264

PHP code 50% from 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
  • Method cyclomatic complexity should be reduced to less than 100 (currently 162)
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity270.14
▷ Minimum class complexity32.00
▷ Maximum class complexity654.00
Average method complexity7.66
▷ Minimum method complexity1.00
▷ Maximum method complexity162.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods283
▷ Static methods51.77%
▷ Public methods13045.94%
▷ Protected methods00.00%
▷ Private methods15354.06%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants146
▷ Global constants00.00%
▷ Class constants146100.00%
▷ Public constants146100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin