77% portfolio-manager-powered-by-behance

Code Review | Behance Portfolio Manager

WordPress plugin Behance Portfolio Manager scored77%from 54 tests.

About plugin

  • Plugin page: portfolio-manager...
  • Plugin version: 1.7.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 12, 2015
  • Latest release: Mar 8, 2023
  • Number of updates: 60
  • Update frequency: every 45.6 days
  • Top authors: eleopard (100%)

Code review

54 tests

User reviews

17 reviews

Install metrics

700+ active /31,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 successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Behance Portfolio Manager
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.86 ▲0.4048.74 ▲5.15
Dashboard /wp-admin4.25 ▲0.9454.29 ▼5.62
Posts /wp-admin/edit.php4.28 ▲0.9257.96 ▲5.95
Add New Post /wp-admin/post-new.php6.94 ▲1.0585.48 ▼19.90
Media Library /wp-admin/upload.php4.18 ▲0.9543.36 ▲3.96
All Projects /wp-admin/admin.php?page=eds-bpm-top-menu4.2044.67
Add New /wp-admin/admin.php?page=eds-bpm-new-project4.2045.13
Categories /wp-admin/admin.php?page=eds-bpm-cat-menu4.2045.02
Settings /wp-admin/admin.php?page=eds-bpm-config-menu4.1141.20

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 99 new files
Database: 2 new tables, 7 new options
New tables
wp_bpm_categories
wp_bpm_projects
New WordPress options
widget_recent-comments
widget_theysaidso_widget
bpm_db_version
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Behance Portfolio Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲12913.41 ▼0.7511.07 ▲8.8942.98 ▼3.01
Dashboard /wp-admin2,229 ▲525.50 ▼0.0389.75 ▼13.6774.42 ▲24.87
Posts /wp-admin/edit.php2,134 ▲341.97 ▲0.0335.28 ▼3.5837.21 ▲2.49
Add New Post /wp-admin/post-new.php1,573 ▲3723.03 ▼0.09689.23 ▼32.23163.51 ▲112.44
Media Library /wp-admin/upload.php1,434 ▲374.13 ▼0.05102.26 ▼12.6378.09 ▲31.73
All Projects /wp-admin/admin.php?page=eds-bpm-top-menu1,3593.3551.4168.40
Add New /wp-admin/admin.php?page=eds-bpm-new-project1,1213.5346.0165.15
Categories /wp-admin/admin.php?page=eds-bpm-cat-menu1,2653.5247.0164.21
Settings /wp-admin/admin.php?page=eds-bpm-config-menu1,1343.7355.4473.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=eds-bpm-config-menu
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=eds-bpm-config-menu
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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 trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/portfolio-manager-powered-by-behance/includes/eds-bpm-tinymce-popup.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots have no corresponding images in /assets: #8 (**Pretty URL** - Enable Disable Pretty URLs from Portfolio Manager -> Settings.), #9 (**Navigation Settings** - Options to configure different property of navigation buttons in single project view.)
You can take inspiration from this readme.txt

portfolio-manager-powered-by-behance/edsbportman.php 77% from 13 tests

The principal PHP file in "Behance Portfolio Manager" v. 1.7.3 is loaded by WordPress automatically on each request
It is important to fix the following:
  • 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
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 282 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("portfolio-manager-powered-by-behance.php" instead of "edsbportman.php")

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,615 lines of code in 68 files:
LanguageFilesBlank linesComment linesLines of code
PHP321,3443486,290
PO File101,9202,3104,264
SVG7052,558
CSS13111521,847
JavaScript616453656

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity25.21
▷ Minimum class complexity1.00
▷ Maximum class complexity100.00
Average method complexity3.16
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes19
▷ Abstract classes00.00%
▷ Concrete classes19100.00%
▷ Final classes00.00%
Methods213
▷ Static methods146.57%
▷ Public methods17582.16%
▷ Protected methods62.82%
▷ Private methods3215.02%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants00.00%
▷ Class constants9100.00%
▷ Public constants9100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
6 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/portfolio-manager.png1.93KB0.79KB▼ 58.83%
images/eds-bpm-16x16.png1.04KB0.20KB▼ 80.97%
images/eds-bpm-48x48.png3.26KB1.74KB▼ 46.72%
images/vc-bpm.png1.84KB0.94KB▼ 49.07%
images/eds-bpm-dark-20x20.png1.14KB0.20KB▼ 82.48%