84% portfolio-for-elementor

Code Review | Portfolio for Elementor

WordPress plugin Portfolio for Elementor scored84%from 54 tests.

About plugin

  • Plugin page: portfolio-for-ele...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Nov 11, 2022
  • Latest release: Apr 7, 2023
  • Number of updates: 5
  • Update frequency: every 29.4 days
  • Top authors: habibur899 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /1,412 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▼8.48ms] Passed 4 tests

Analyzing server-side resources used by Portfolio for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0841.31 ▼2.25
Dashboard /wp-admin3.38 ▲0.0349.98 ▼14.94
Posts /wp-admin/edit.php3.44 ▲0.0754.84 ▲2.93
Add New Post /wp-admin/post-new.php6.06 ▲0.1788.38 ▼18.62
Media Library /wp-admin/upload.php3.31 ▲0.0744.28 ▲1.89
Add New /wp-admin/post-new.php?post_type=pfe_portfolio6.0586.43
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=pfe_portfolio_category&post_type=pfe_portfolio3.3035.39
Portfolio /wp-admin/edit.php?post_type=pfe_portfolio3.3536.52

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Portfolio for Elementor: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,865 ▲10414.25 ▼0.111.79 ▲0.3242.56 ▲0.42
Dashboard /wp-admin2,243 ▲695.62 ▼0.0488.85 ▼6.6940.04 ▼3.35
Posts /wp-admin/edit.php2,148 ▲452.09 ▲0.0940.34 ▼0.0536.46 ▼1.46
Add New Post /wp-admin/post-new.php1,570 ▲4423.25 ▲0.02640.91 ▼69.5848.41 ▼1.19
Media Library /wp-admin/upload.php1,451 ▲514.19 ▲0.0396.78 ▼4.3843.64 ▼6.80
Add New /wp-admin/post-new.php?post_type=pfe_portfolio1,54916.91888.1433.37
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=pfe_portfolio_category&post_type=pfe_portfolio1,3252.2830.7534.07
Portfolio /wp-admin/edit.php?post_type=pfe_portfolio1,1091.9630.8331.63

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-for-elementor/classes/portfolio-for-elementor-post-type.php:80

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: There are too many tags (15 tag instead of maximum 10)
  • Screenshots: No descriptions were found for these screenshots #2, #3, #4, #5 in portfolio-for-elementor/assets to your readme.txt
You can take inspiration from this readme.txt

portfolio-for-elementor/portfolio-for-elementor.php Passed 13 tests

This is the main PHP file of "Portfolio for Elementor" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
63 characters long description:
You can make portfolio section use this plugin completely free.

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 detected5,373 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
CSS4629393,817
PHP4126227759
SVG103687
JavaScript4203497
HTML10013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity12.00
▷ Minimum class complexity9.00
▷ Maximum class complexity15.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods22
▷ Static methods14.55%
▷ Public methods1986.36%
▷ Protected methods29.09%
▷ Private methods14.55%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected