79% filterable-portfolio-for-beaver-builder-elementor

Code Review | Xpro Portfolio For Beaver Builder - Lite

WordPress plugin Xpro Portfolio For Beaver Builder - Lite scored79%from 54 tests.

About plugin

  • Plugin page: filterable-portfo...
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: Mar 22, 2021
  • Latest release: Aug 16, 2023
  • Number of updates: 39
  • Update frequency: every 22.6 days
  • Top authors: xpro (74.36%)bbadonstnit (28.21%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /953 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
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.01ms] Passed 4 tests

A check of server-side resources used by Xpro Portfolio For Beaver Builder - Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.13 ▼4.87
Dashboard /wp-admin3.32 ▲0.0247.56 ▼3.60
Posts /wp-admin/edit.php3.38 ▲0.0255.77 ▲4.17
Add New Post /wp-admin/post-new.php5.91 ▲0.0292.26 ▼12.06
Media Library /wp-admin/upload.php3.25 ▲0.0235.78 ▼3.49

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 49 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Xpro Portfolio For Beaver Builder - Lite
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.15 ▼1.381.63 ▼0.1441.93 ▼0.91
Dashboard /wp-admin2,206 ▲185.88 ▲0.86101.11 ▼7.1640.24 ▼6.08
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0539.49 ▲2.5234.46 ▼1.11
Add New Post /wp-admin/post-new.php1,537 ▼523.22 ▲5.03675.28 ▼9.3755.49 ▼7.55
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.03103.19 ▼9.2247.05 ▼3.87

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

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

Smoke tests 50% from 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 8× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/layouts/portfolio-layout-5.php
    • > /wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/layouts/portfolio-layout-4.php
    • > /wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/includes/frontend.js.php
    • > /wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/layouts/portfolio-layout-6.php
    • > /wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/includes/frontend.php
    • > /wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/layouts/portfolio-layout-1.php
    • > /wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/layouts/portfolio-layout-2.php
    • > /wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/layouts/portfolio-layout-3.php
  • 70× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Warning
      Use of undefined constant XPRO_PORTFOLIO_FOR_BB_LITE_DIR - assumed 'XPRO_PORTFOLIO_FOR_BB_LITE_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/classes/class-xpro-portfolio-lite-wp-init.php on line 31
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/includes/frontend.php on line 13
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/layouts/portfolio-layout-2.php on line 9
    • > PHP Notice
      Trying to get property 'filterable_portfolio' of non-object in wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/layouts/portfolio-layout-3.php on line 9
    • > PHP Notice
      Trying to get property 'preview_type' of non-object in wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/includes/frontend.js.php on line 330
    • > PHP Notice
      Undefined variable: settings in wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/layouts/portfolio-layout-2.php on line 5
    • > PHP Notice
      Trying to get property 'enable_filter' of non-object in wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/layouts/portfolio-layout-1.php on line 1
    • > PHP Notice
      Trying to get property 'portfolio_layout' of non-object in wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/includes/frontend.js.php on line 303
    • > PHP Notice
      Trying to get property 'portfolio_layout' of non-object in wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/includes/frontend.js.php on line 8
    • > PHP Warning
      count(): Parameter must be an array or an object that implements Countable in wp-content/plugins/filterable-portfolio-for-beaver-builder-elementor/modules/tnit-portfolio/layouts/portfolio-layout-1.php on line 40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: beaver builder free portfolio, beaver builder portfolio extensions, beaver builder, beaver builder portfolio plugin, wordpress portfolio responsive mobile friendly...

filterable-portfolio-for-beaver-builder-elementor/filterable-portfolio-for-beaver-builder-elementor.php Passed 13 tests

This is the main PHP file of "Xpro Portfolio For Beaver Builder - Lite" version 1.5.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
116 characters long description:
Organize and create a responsive portfolio with one click. Easily drag and drop images in pre-built gallery layouts.

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
There were no executable files found in this plugin9,621 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
CSS116721355,040
PHP145314114,374
JavaScript75940158
SVG30049

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity10.75
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes125.00%
Methods24
▷ Static methods937.50%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants266.67%
▷ Class constants133.33%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
modules/tnit-portfolio/img/youtube-play.png5.06KB2.37KB▼ 53.04%
modules/tnit-portfolio/img/vimeo-play.png5.30KB1.56KB▼ 70.65%
assets/images/Logo.png15.10KB5.76KB▼ 61.83%
modules/tnit-portfolio/img/video-play.png4.42KB1.05KB▼ 76.27%