84% wpzoom-portfolio

Code Review | WPZOOM Portfolio

WordPress plugin WPZOOM Portfolio scored84%from 54 tests.

About plugin

  • Plugin page: wpzoom-portfolio
  • Plugin version: 1.4.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.4
  • WordPress version: 6.3.1
  • First release: Feb 5, 2022
  • Latest release: Nov 8, 2023
  • Number of updates: 33
  • Update frequency: every 19.5 days
  • Top authors: WPZOOM (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20,000+ active /189,738 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
Install script ran successfully

Server metrics [RAM: ▲0.80MB] [CPU: ▼3.20ms] Passed 4 tests

An overview of server-side resources used by WPZOOM Portfolio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.26 ▲0.8043.76 ▲0.39
Dashboard /wp-admin4.12 ▲0.7755.08 ▼8.93
Posts /wp-admin/edit.php4.18 ▲0.8258.74 ▲8.66
Add New Post /wp-admin/post-new.php6.96 ▲1.0791.93 ▼12.15
Media Library /wp-admin/upload.php4.05 ▲0.8142.60 ▲7.90
Portfolio Layouts /wp-admin/edit.php?post_type=portfolio_layout4.0941.36
Re-order /wp-admin/edit.php?post_type=portfolio_item&page=wpzoom_featured_sorting_menu_portfolio_item4.0341.70
Categories /wp-admin/edit-tags.php?taxonomy=portfolio&post_type=portfolio_item4.0543.70
Portfolio Items /wp-admin/edit.php?post_type=portfolio_item4.0942.58
Settings /wp-admin/edit.php?post_type=portfolio_item&page=wpzoom-portfolio-settings3.9638.05

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 9 new options
New WordPress options
default_portfolio
db_upgraded
widget_recent-posts
wpzoom_featured_posts_ordered_portfolio_item
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
portfolio_children
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WPZOOM Portfolio
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,923 ▲17613.43 ▼0.958.04 ▲6.3539.39 ▼3.23
Dashboard /wp-admin2,236 ▲625.52 ▼0.1383.97 ▼15.7741.71 ▼4.92
Posts /wp-admin/edit.php2,147 ▲471.96 ▼0.0139.75 ▲3.8835.57 ▼0.53
Add New Post /wp-admin/post-new.php6,420 ▲4,88528.21 ▲2.85951.15 ▲303.5577.52 ▲18.85
Media Library /wp-admin/upload.php1,441 ▲414.14 ▼0.01100.73 ▼3.8340.10 ▼7.63
Portfolio Layouts /wp-admin/edit.php?post_type=portfolio_layout1,1131.9030.2130.88
Re-order /wp-admin/edit.php?post_type=portfolio_item&page=wpzoom_featured_sorting_menu_portfolio_item9272.7143.9325.04
Categories /wp-admin/edit-tags.php?taxonomy=portfolio&post_type=portfolio_item1,4192.1328.6233.54
Portfolio Items /wp-admin/edit.php?post_type=portfolio_item1,1591.9029.9530.94
Settings /wp-admin/edit.php?post_type=portfolio_item&page=wpzoom-portfolio-settings1,5902.6457.7429.66

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 9 options
    • portfolio_children
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • default_portfolio
    • can_compress_scripts
    • wpzoom_featured_posts_ordered_portfolio_item
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wpzoom-portfolio/templates/taxonomy-portfolio.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: gutenberg, portfolio, grid, wpzoom, inspiro...

wpzoom-portfolio/wpzoom-portfolio.php 92% from 13 tests

The main PHP file in "WPZOOM Portfolio" ver. 1.4.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected15,300 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript191,2241,3769,815
PHP218281,3293,514
Sass3156161,106
CSS109317865

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.52
Average class complexity39.54
▷ Minimum class complexity1.00
▷ Maximum class complexity217.00
Average method complexity3.74
▷ Minimum method complexity1.00
▷ Maximum method complexity43.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods141
▷ Static methods2114.89%
▷ Public methods13897.87%
▷ Protected methods32.13%
▷ Private methods00.00%
Functions12
▷ Named functions541.67%
▷ Anonymous functions758.33%
Constants8
▷ Global constants787.50%
▷ Class constants112.50%
▷ Public constants1100.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
PNG images were not found in this plugin