84% perfecto-portfolio

Code Review | Perfecto Portfolio

WordPress plugin Perfecto Portfolio scored84%from 54 tests.

About plugin

  • Plugin page: perfecto-portfolio
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.6
  • WordPress version: 6.3.1
  • First release: Oct 21, 2019
  • Latest release: Feb 12, 2021
  • Number of updates: 10
  • Update frequency: every 48.3 days
  • Top authors: lehelm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,880 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.19MB] [CPU: ▼6.08ms] Passed 4 tests

This is a short check of server-side resources used by Perfecto Portfolio
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1941.07 ▲2.98
Dashboard /wp-admin3.49 ▲0.1452.12 ▼5.33
Posts /wp-admin/edit.php3.60 ▲0.2445.12 ▼2.47
Add New Post /wp-admin/post-new.php6.18 ▲0.3085.29 ▼19.48
Media Library /wp-admin/upload.php3.41 ▲0.1839.23 ▲5.23
Perfecto Portfolio /wp-admin/options-general.php?page=perfecto_portfolio_options3.3842.18
Add new /wp-admin/post-new.php?post_type=prfct_portfolio6.1786.93
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=prfct_tx_portfolio_tag&post_type=prfct_portfolio3.4034.77
All Perfecto Portfolio /wp-admin/edit.php?post_type=prfct_portfolio3.4537.02

Server storage [IO: ▲1.89MB] [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: 38 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
perfecto_portfolio_advanced_options
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Perfecto Portfolio
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,227 ▲46614.08 ▼0.3321.10 ▲19.2641.19 ▲2.47
Dashboard /wp-admin2,234 ▲605.51 ▼0.0882.31 ▼4.4539.49 ▼3.37
Posts /wp-admin/edit.php2,139 ▲422.03 ▲0.0434.71 ▼1.0433.07 ▼5.63
Add New Post /wp-admin/post-new.php1,575 ▲4918.34 ▼4.72603.27 ▼1.7864.87 ▲10.71
Media Library /wp-admin/upload.php1,439 ▲364.24 ▲0.1193.30 ▼9.7841.76 ▼0.37
Perfecto Portfolio /wp-admin/options-general.php?page=perfecto_portfolio_options1,0092.0021.5540.20
Add new /wp-admin/post-new.php?post_type=prfct_portfolio6,21122.57900.2329.51
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=prfct_tx_portfolio_tag&post_type=prfct_portfolio1,2822.2427.2529.44
All Perfecto Portfolio /wp-admin/edit.php?post_type=prfct_portfolio1,1091.9728.4232.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/perfecto-portfolio/admin/partials/perfecto-shortcode-options-table-pro.php
    • > /wp-content/plugins/perfecto-portfolio/admin/partials/perfecto-shortcode-options-table.php
    • > /wp-content/plugins/perfecto-portfolio/public/partials/perfecto-portfolio-public-display.php
    • > /wp-content/plugins/perfecto-portfolio/admin/partials/perfecto-portfolio-admin-display.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
The official readme.txt might help

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

The primary PHP file in "Perfecto Portfolio" version 1.0.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 279 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
Everything looks great! No dangerous files found in this plugin28,455 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
CSS606,08218,730
JavaScript63,5121128,806
PHP18353914919

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.91
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity1.78
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods55
▷ Static methods1221.82%
▷ Public methods3869.09%
▷ Protected methods814.55%
▷ Private methods916.36%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin