68% portfolio-wall

Code Review | Portfolio Wall

WordPress plugin Portfolio Wall scored 68% from 54 tests.

About plugin

  • Plugin page: portfolio-wall
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.5
  • WordPress version: 5.8.1
  • First release: Feb 1, 2016
  • Latest release: Mar 31, 2016
  • Number of updates: 6
  • Update frequency: every 9.8 days
  • Top authors: RojaIT (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 2,925 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼1.87MB] [CPU: ▼189.22ms] Passed 4 tests

Analyzing server-side resources used by Portfolio Wall
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /1.76 ▼1.075.67 ▼28.40
Dashboard /wp-admin1.78 ▼1.275.22 ▼46.29
Posts /wp-admin/edit.php1.78 ▼1.335.15 ▼36.88
Add New Post /wp-admin/post-new.php1.78 ▼3.655.84 ▼645.29
Media Library /wp-admin/upload.php1.78 ▼1.225.28 ▼27.26
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=filterable_portfolio1.785.25
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=filterable_portfolio1.785.89
All Portfolio /wp-admin/edit.php?post_type=filterable_portfolio1.785.17
Add New Portfolio /wp-admin/post-new.php?post_type=filterable_portfolio1.785.60

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 1 new option
New WordPress options
category_children

Browser metrics Passed 4 tests

Checking browser requirements for Portfolio Wall
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,890 ▲29416.65 ▲1.2914.61 ▲3.9846.22 ▼0.16
Dashboard /wp-admin3,049 ▲1156.74 ▲0.73145.30 ▼11.77127.10 ▲6.90
Posts /wp-admin/edit.php2,846 ▲1072.81 ▲0.1169.30 ▲1.63101.33 ▲14.93
Add New Post /wp-admin/post-new.php1,748 ▲13315.57 ▼5.92419.31 ▲119.22111.95 ▼9.46
Media Library /wp-admin/upload.php1,834 ▲275.44 ▲0.40187.23 ▲24.26134.44 ▲9.17
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=filterable_portfolio1,9222.6964.1780.15
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=filterable_portfolio2,0032.6868.8887.66
All Portfolio /wp-admin/edit.php?post_type=filterable_portfolio1,5702.6466.7688.16
Add New Portfolio /wp-admin/post-new.php?post_type=filterable_portfolio3,2679.29226.30155.06

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the portfolio-wall-main handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • category_children

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
These server-side errors were triggered
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=filterable_portfolio
    • > User notice in wp-includes/functions.php+5663
    wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the portfolio-wall-main handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/portfolio-wall/portfolio-wall.php:33

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 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
  • Contributors: The plugin contributors field is not present
The official readme.txt might help

portfolio-wall/portfolio-wall.php 85% from 13 tests

The main PHP file in "Portfolio Wall" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 199 characters long)
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin374 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP16945230
CSS1294141
JavaScript1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions12
▷ Named functions12100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.45KB0.64KB▼ 55.47%