90% post-type-search-module-for-divi

Code Review | Post Type Search Module For Divi

WordPress plugin Post Type Search Module For Divi scored90%from 54 tests.

About plugin

  • Plugin page: post-type-search-...
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.8
  • WordPress version: 6.3.1
  • First release: Jan 28, 2018
  • Latest release: Oct 6, 2021
  • Number of updates: 12
  • Update frequency: every 112.3 days
  • Top authors: ferventsolutions (91.67%)websitejedi (16.67%)

Code review

54 tests

User reviews

10 reviews

Install metrics

1,000+ active /8,054 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.00MB] [CPU: ▼7.00ms] Passed 4 tests

This is a short check of server-side resources used by Post Type Search Module For Divi
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.53 ▼5.72
Dashboard /wp-admin3.31 ▼0.0350.45 ▼12.01
Posts /wp-admin/edit.php3.36 ▲0.0149.32 ▲1.21
Add New Post /wp-admin/post-new.php5.89 ▲0.0184.24 ▼9.95
Media Library /wp-admin/upload.php3.24 ▲0.0134.79 ▼0.32

Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Type Search Module For Divi
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5314.26 ▼0.031.99 ▲0.2644.65 ▲6.48
Dashboard /wp-admin2,195 ▲155.53 ▼0.1399.03 ▲4.9443.10 ▲1.00
Posts /wp-admin/edit.php2,103 ▲31.99 ▼0.0333.63 ▼9.4336.26 ▼1.73
Add New Post /wp-admin/post-new.php1,528 ▼023.04 ▲0.00714.32 ▲61.0352.84 ▲2.56
Media Library /wp-admin/upload.php1,403 ▼04.23 ▲0.03101.44 ▲4.0945.37 ▲2.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
7 plugin tags: divi, search, custom post type, elegant themes, custom module...

post-type-search-module-for-divi/post-type-search-module-for-divi.php Passed 13 tests

Analyzing the main PHP file in "Post Type Search Module For Divi" version 1.2.1
59 characters long description:
Custom Module To Enable Users To Search Selected Post Types

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected461 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16284461

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity6.00
▷ Minimum class complexity6.00
▷ Maximum class complexity6.00
Average method complexity1.83
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
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
No PNG images were found in this plugin