84% portfolios

Code Review | Portfolios

WordPress plugin Portfolios scored84%from 54 tests.

About plugin

  • Plugin page: portfolios
  • Plugin version: 1.1.6
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Aug 1, 2013
  • Latest release: Jan 21, 2019
  • Number of updates: 24
  • Update frequency: every 84.3 days
  • Top authors: themeblvd (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active /25,247 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.16MB] [CPU: ▼0.54ms] Passed 4 tests

A check of server-side resources used by Portfolios
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1644.04 ▲1.51
Dashboard /wp-admin3.43 ▲0.1346.78 ▼3.02
Posts /wp-admin/edit.php3.56 ▲0.2046.74 ▼1.45
Add New Post /wp-admin/post-new.php6.15 ▲0.27107.54 ▲24.00
Media Library /wp-admin/upload.php3.36 ▲0.1334.01 ▲0.78
Add New Item /wp-admin/post-new.php?post_type=portfolio_item6.1584.06
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio_item3.3533.44
Portfolios /wp-admin/edit-tags.php?taxonomy=portfolio&post_type=portfolio_item3.3533.96
Portfolio Items /wp-admin/edit.php?post_type=portfolio_item3.4135.67

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Portfolios
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲6713.22 ▼1.181.80 ▼0.2544.55 ▼1.23
Dashboard /wp-admin2,244 ▲554.81 ▼1.13101.73 ▼17.4536.85 ▼10.07
Posts /wp-admin/edit.php2,124 ▲352.06 ▲0.0636.42 ▼2.1433.04 ▼5.08
Add New Post /wp-admin/post-new.php1,562 ▲4823.18 ▲5.77637.86 ▼19.9752.81 ▼0.59
Media Library /wp-admin/upload.php1,423 ▲384.19 ▲0.0198.92 ▼2.5342.62 ▲0.69
Add New Item /wp-admin/post-new.php?post_type=portfolio_item6,23923.43914.4932.80
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio_tag&post_type=portfolio_item1,2692.1426.5529.43
Portfolios /wp-admin/edit-tags.php?taxonomy=portfolio&post_type=portfolio_item1,2972.1425.2328.44
Portfolio Items /wp-admin/edit.php?post_type=portfolio_item1,1521.9330.6832.10

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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 everything seems fine, this is not 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
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 plugins_url() in wp-content/plugins/portfolios/tb-portfolios.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: bundle, themeblvd, portfolios, jason bobich, theme blvd

portfolios/tb-portfolios.php 92% from 13 tests

The entry point to "Portfolios" version 1.1.6 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("portfolios.php" instead of "tb-portfolios.php")

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
Success! There were no dangerous files found in this plugin501 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1216244501

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity70.00
▷ Minimum class complexity70.00
▷ Maximum class complexity70.00
Average method complexity3.65
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods13.85%
▷ Public methods2596.15%
▷ Protected methods00.00%
▷ Private methods13.85%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG images were found in this plugin