78% amazing-portfolio

Code Review | Amazing Portfolio

WordPress plugin Amazing Portfolio scored 78% from 54 tests.

About plugin

  • Plugin page: amazing-portfolio
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.9
  • WordPress version: 6.3.1
  • First release: May 19, 2018
  • Latest release: May 30, 2018
  • Number of updates: 6
  • Update frequency: every 3.0 days
  • Top authors: themebon (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 863 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.68MB] [CPU: ▲2.54ms] Passed 4 tests

Server-side resources used by Amazing Portfolio
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.15 ▲0.6942.71 ▼5.03
Dashboard /wp-admin3.99 ▲0.6954.08 ▲6.71
Posts /wp-admin/edit.php4.04 ▲0.6853.80 ▲0.95
Add New Post /wp-admin/post-new.php6.60 ▲0.72106.88 ▲7.53
Media Library /wp-admin/upload.php3.89 ▲0.6646.21 ▲9.87
Categories /wp-admin/edit-tags.php?taxonomy=amazing-portfolio-category&post_type=amazing-portfolio3.9141.37
Add New /wp-admin/post-new.php?post_type=amazing-portfolio4.0358.44
All Portfolios /wp-admin/edit.php?post_type=amazing-portfolio3.9743.53

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 133 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

Amazing Portfolio: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,214 ▲47916.12 ▲1.7613.27 ▲11.4646.00 ▲1.68
Dashboard /wp-admin2,457 ▲2697.10 ▲2.19127.43 ▲7.6839.59 ▼5.86
Posts /wp-admin/edit.php2,363 ▲2743.91 ▲1.8357.75 ▲20.7330.98 ▼1.01
Add New Post /wp-admin/post-new.php1,636 ▲12218.40 ▲0.93575.10 ▼107.5534.61 ▼19.15
Media Library /wp-admin/upload.php1,499 ▲1114.78 ▲0.6283.97 ▼13.6345.18 ▲2.11
Categories /wp-admin/edit-tags.php?taxonomy=amazing-portfolio-category&post_type=amazing-portfolio1,5453.6950.5727.69
Add New /wp-admin/post-new.php?post_type=amazing-portfolio2,8837.79188.1971.71
All Portfolios /wp-admin/edit.php?post_type=amazing-portfolio1,3783.8849.9028.49

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
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/post-new.php?post_type=amazing-portfolio
    • > Notice in wp-content/plugins/amazing-portfolio/inc/framework/classes/metabox.class.php+70
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_terms() in wp-content/plugins/amazing-portfolio/inc/related-portfolio.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/amazing-portfolio/inc/single-portfolio.php:9

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 on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt might help

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

"Amazing Portfolio" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin47,092 lines of code in 101 files:
LanguageFilesBlank linesComment linesLines of code
PO File7306334705

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity14.03
▷ Minimum class complexity1.00
▷ Maximum class complexity94.00
Average method complexity5.17
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
▷ Abstract classes26.25%
▷ Concrete classes3093.75%
▷ Final classes00.00%
▷ Static methods55.00%
▷ Public methods100100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions53100.00%
▷ Anonymous functions00.00%
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/no-image.png20.85KB9.38KB▼ 55.01%