89% ep-widgets-search

Code Review | EP Widgets Search

WordPress plugin EP Widgets Search scored89%from 54 tests.

About plugin

  • Plugin page: ep-widgets-search
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.2.2
  • WordPress version: 6.3.1
  • First release: Jul 26, 2019
  • Latest release: Jul 27, 2019
  • Number of updates: 8
  • Update frequency: every 0.1 days
  • Top authors: suvronur (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /507 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.70ms] Passed 4 tests

Analyzing server-side resources used by EP Widgets Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.22 ▼1.29
Dashboard /wp-admin3.31 ▲0.0146.14 ▼2.95
Posts /wp-admin/edit.php3.36 ▲0.0149.56 ▲1.20
Add New Post /wp-admin/post-new.php5.89 ▲0.0183.60 ▼5.79
Media Library /wp-admin/upload.php3.24 ▲0.0136.70 ▼0.77

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for EP Widgets Search
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.20 ▼1.191.76 ▼0.2542.20 ▼3.22
Dashboard /wp-admin2,206 ▲185.85 ▲0.0498.27 ▼16.3441.58 ▼3.11
Posts /wp-admin/edit.php2,086 ▼62.04 ▲0.0339.79 ▼12.8237.66 ▼13.10
Add New Post /wp-admin/post-new.php1,533 ▼922.88 ▲4.68652.28 ▲44.7662.71 ▲10.96
Media Library /wp-admin/upload.php1,388 ▼34.20 ▲0.06103.62 ▲0.0746.74 ▲2.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

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

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 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Donate link: Invalid url: ""
The official readme.txt is a good inspiration

ep-widgets-search/ep-widgets-search.php 92% from 13 tests

"EP Widgets Search" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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 detected112 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP4202851
CSS11040
JavaScript1182316
SVG1005

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/navigation-right.png0.33KB0.56KB0.00%
assets/images/logo-exertpro-menu-white.png1.60KB0.73KB▼ 54.45%
assets/images/navigation-left.png0.36KB0.59KB0.00%
assets/images/logo-exertpro.png6.18KB2.48KB▼ 59.91%