83% portfolio-builder-elementor

Code Review | Elementor Portfolio Builder

WordPress plugin Elementor Portfolio Builder scored83%from 54 tests.

About plugin

  • Plugin page: portfolio-builder...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 2, 2021
  • Latest release: Sep 20, 2023
  • Number of updates: 14
  • Update frequency: every 47.0 days
  • Top authors: smarettheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

70+ active /806 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼4.49ms] Passed 4 tests

An overview of server-side resources used by Elementor Portfolio Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1935.92 ▼7.50
Dashboard /wp-admin3.49 ▲0.1851.42 ▼0.84
Posts /wp-admin/edit.php3.54 ▲0.1865.88 ▲18.05
Add New Post /wp-admin/post-new.php6.06 ▲0.1887.63 ▼11.00
Media Library /wp-admin/upload.php3.38 ▲0.1635.38 ▲1.38
Category /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio3.4137.87
Add New Portfolio /wp-admin/post-new.php?post_type=portfolio3.5153.12
All Portfolios /wp-admin/edit.php?post_type=portfolio3.4641.12

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 157 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Elementor Portfolio Builder
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,193 ▲43215.94 ▲1.6410.52 ▲8.7053.76 ▲8.10
Dashboard /wp-admin2,459 ▲2826.71 ▲1.04124.16 ▲30.9749.66 ▲8.39
Posts /wp-admin/edit.php2,390 ▲2933.92 ▲1.9558.74 ▲24.2434.23 ▼4.02
Add New Post /wp-admin/post-new.php1,635 ▲10923.00 ▼0.23652.81 ▼7.7437.40 ▼17.38
Media Library /wp-admin/upload.php1,526 ▲1264.72 ▲0.4792.35 ▼14.7747.49 ▼3.18
Category /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio1,5603.5945.8533.93
Add New Portfolio /wp-admin/post-new.php?post_type=portfolio2,6658.11180.4074.31
All Portfolios /wp-admin/edit.php?post_type=portfolio1,3783.8052.1631.50

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please take a closer look at the following
  • 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-builder-elementor/admin/class-custom-taxonomy.php:13
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/portfolio-builder-elementor/elementor/templates/general-style-one.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-builder-elementor/inc/class-portfolio-builder-elementor-init.php:16
    • > PHP Notice
      Undefined variable: posts_query in wp-content/plugins/portfolio-builder-elementor/elementor/templates/grid-style-one.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/portfolio-builder-elementor/elementor/templates/general-style-two.php:8
    • > PHP Notice
      Undefined variable: posts_query in wp-content/plugins/portfolio-builder-elementor/elementor/templates/general-style-two.php on line 8
    • > PHP Notice
      Undefined variable: posts_query in wp-content/plugins/portfolio-builder-elementor/elementor/templates/general-style-one.php on line 9
    • > PHP Notice
      Undefined variable: posts_query in wp-content/plugins/portfolio-builder-elementor/elementor/templates/grid-style-two.php on line 9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/portfolio-builder-elementor/single/single-portfolio.php:5
    • > PHP Fatal error
      Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/portfolio-builder-elementor/elementor/templates/grid-style-one.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #5 (/assets/screenshot-5.png), #6 (/assets/screenshot-6.png)
The official readme.txt is a good inspiration

portfolio-builder-elementor/portfolio-builder-elementor.php 85% from 13 tests

The main file in "Elementor Portfolio Builder" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 421 characters long)
  • 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 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin37,576 lines of code in 137 files:
LanguageFilesBlank linesComment linesLines of code
PHP943,2921,51613,222
SVG50129,028
CSS113385126,846
Sass1585134,325
JavaScript111,2333954,012
PO File16371143

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity20.03
▷ Minimum class complexity1.00
▷ Maximum class complexity121.00
Average method complexity5.49
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes63
▷ Abstract classes23.17%
▷ Concrete classes6196.83%
▷ Final classes11.64%
Methods267
▷ Static methods3914.61%
▷ Public methods25495.13%
▷ Protected methods134.87%
▷ Private methods00.00%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants872.73%
▷ Class constants327.27%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
lib/codestar-framework/assets/images/checkerboard.png2.29KB2.54KB0.00%