77% awesome-protfolio

Code Review | Awesome Portfolio

WordPress plugin Awesome Portfolio scored77%from 54 tests.

About plugin

  • Plugin page: awesome-protfolio
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Feb 18, 2017
  • Latest release: Jan 17, 2019
  • Number of updates: 10
  • Update frequency: every 69.8 days
  • Top authors: raihancse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,158 total downloads

Benchmarks

Plugin footprint 83% 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: ▲0.30MB] [CPU: ▲5.51ms] Passed 4 tests

A check of server-side resources used by Awesome Portfolio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2147.84 ▲7.37
Dashboard /wp-admin3.69 ▲0.3857.00 ▲8.35
Posts /wp-admin/edit.php3.75 ▲0.3960.56 ▲8.65
Add New Post /wp-admin/post-new.php6.22 ▲0.3399.34 ▲7.53
Media Library /wp-admin/upload.php3.53 ▲0.2938.69 ▼1.23
Add New /wp-admin/post-new.php?post_type=portfolio3.7858.78
All Portfolios /wp-admin/edit.php?post_type=portfolio3.6549.48
Skills /wp-admin/edit-tags.php?taxonomy=portfolio_skill&post_type=portfolio3.5542.87
Settings /wp-admin/edit.php?post_type=portfolio&page=fp-settings3.5339.90
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio3.5541.49

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 55 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_widget_filterable_portfolio
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Awesome Portfolio
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,005 ▲24414.85 ▲0.321.71 ▼0.3946.32 ▼0.42
Dashboard /wp-admin2,400 ▲2206.46 ▲0.81126.28 ▲36.0542.66 ▼0.81
Posts /wp-admin/edit.php2,335 ▲2353.62 ▲1.5957.59 ▲21.4432.95 ▼7.20
Add New Post /wp-admin/post-new.php1,583 ▲5723.00 ▼0.01609.62 ▼77.7934.28 ▼26.08
Media Library /wp-admin/upload.php1,471 ▲684.42 ▲0.1184.40 ▼19.1546.02 ▼1.24
Add New /wp-admin/post-new.php?post_type=portfolio2,7568.05189.0875.07
All Portfolios /wp-admin/edit.php?post_type=portfolio1,3633.6251.4226.75
Skills /wp-admin/edit-tags.php?taxonomy=portfolio_skill&post_type=portfolio1,5083.5245.3032.52
Settings /wp-admin/edit.php?post_type=portfolio&page=fp-settings1,4023.5763.7139.69
Categories /wp-admin/edit-tags.php?taxonomy=portfolio_cat&post_type=portfolio1,5053.4242.9236.89

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_widget_filterable_portfolio
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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 take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/awesome-protfolio/templates/shapla/archive-portfolio.php:14

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
    • > GET request to /wp-admin/edit.php?post_type=portfolio&page=fp-settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultLabel is deprecated since version 5.5.0! Use wp.i18n instead.
    • > GET request to /wp-admin/edit.php?post_type=portfolio&page=fp-settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.pick is deprecated since version 5.5.0! Use wp.i18n instead.
    • > GET request to /wp-admin/edit.php?post_type=portfolio&page=fp-settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultString is deprecated since version 5.5.0! Use wp.i18n instead.
    • > GET request to /wp-admin/edit.php?post_type=portfolio&page=fp-settings
    • > Console-api (warning) in wp-admin/js/common.min.js?ver=6.3.1+1:283
    wpColorPickerL10n.defaultAriaLabel is deprecated since version 5.5.0! Use wp.i18n instead.

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% 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 your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === awesome-protfolio === )
  • Screenshots: Add images for these screenshots: #1 (This is the first screenshot), #2 (This is the second screenshot), #3 (This is the third screenshot)
Please take inspiration from this readme.txt

awesome-protfolio/portfolio.php 77% from 13 tests

The main PHP script in "Awesome Portfolio" version 2.0 is automatically included on every request by WordPress
You should first fix the following items:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("awesome-protfolio.php" instead of "portfolio.php")
  • Domain Path: The domain path folder does not exist ("/languages")

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 plugin8,781 lines of code in 53 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript171,4831,9296,213
PHP183757731,995
Sass167821571
CSS2002

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity16.73
▷ Minimum class complexity2.00
▷ Maximum class complexity70.00
Average method complexity2.82
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes19.09%
Methods92
▷ Static methods66.52%
▷ Public methods8491.30%
▷ Protected methods00.00%
▷ Private methods88.70%
Functions8
▷ Named functions00.00%
▷ Anonymous functions8100.00%
Constants9
▷ Global constants9100.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