77% jeba-filterable-portfolio

Code Review | Jeba Filter Portfolio

WordPress plugin Jeba Filter Portfolio scored77%from 54 tests.

About plugin

  • Plugin page: jeba-filterable-p...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Oct 22, 2014
  • Latest release: Oct 22, 2014
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: jahed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /983 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.05MB] [CPU: ▼2.31ms] Passed 4 tests

A check of server-side resources used by Jeba Filter Portfolio
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.15 ▼0.89
Dashboard /wp-admin3.35 ▲0.0549.99 ▼2.24
Posts /wp-admin/edit.php3.40 ▲0.0548.14 ▼2.31
Add New Post /wp-admin/post-new.php5.93 ▲0.0595.84 ▼3.78
Media Library /wp-admin/upload.php3.28 ▲0.0536.06 ▲0.03
Mixitup Category /wp-admin/edit-tags.php?taxonomy=jeba-filter_category&post_type=jeba-filter3.2738.28
Add New /wp-admin/post-new.php?post_type=jeba-filter3.4053.55
JebaFilter /wp-admin/edit.php?post_type=jeba-filter3.3237.73

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Jeba Filter Portfolio
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,919 ▲15813.45 ▼0.849.65 ▲7.9738.11 ▼14.89
Dashboard /wp-admin2,230 ▲505.65 ▲0.0291.34 ▲0.6043.09 ▲2.53
Posts /wp-admin/edit.php2,135 ▲352.04 ▲0.0840.83 ▲2.2336.43 ▼1.34
Add New Post /wp-admin/post-new.php1,556 ▲3023.03 ▼0.10645.51 ▲8.8861.93 ▲11.83
Media Library /wp-admin/upload.php1,432 ▲324.13 ▼0.03104.45 ▼0.6946.32 ▲2.19
Mixitup Category /wp-admin/edit-tags.php?taxonomy=jeba-filter_category&post_type=jeba-filter1,3062.1327.5127.89
Add New /wp-admin/post-new.php?post_type=jeba-filter2,2957.67173.3568.09
JebaFilter /wp-admin/edit.php?post_type=jeba-filter1,1161.9531.9728.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jeba-filterable-portfolio/jeba-filter-index.php:13

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=jeba-filter
    • > Javascript (severe) in unknown
    /wp-content/plugins/jeba-filterable-portfolio/js/filterable.pack.js?ver=6.3.1 4:1443 Uncaught TypeError: $ is not a function

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is missing
  • Screenshots: Please add images for these screenshots: #1 (Installed in demo server.), #2 (Another demo.)
The official readme.txt is a good inspiration

jeba-filterable-portfolio/jeba-filter-index.php 85% from 13 tests

The primary PHP file in "Jeba Filter Portfolio" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("jeba-filterable-portfolio.php" instead of "jeba-filter-index.php")
  • Description: The description should be shorter than 140 characters (currently 250 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected182 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1398119
JavaScript291454
CSS1109

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin