78% auxin-portfolio

Code Review | Premium Portfolio Features for Phlox theme

WordPress plugin Premium Portfolio Features for Phlox theme scored78%from 54 tests.

About plugin

  • Plugin page: auxin-portfolio
  • Plugin version: 2.3.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4.1
  • WordPress version: 6.3.1
  • First release: Feb 25, 2017
  • Latest release: Nov 25, 2023
  • Number of updates: 136
  • Update frequency: every 18.1 days
  • Top authors: averta (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

50,000+ active /769,538 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.05MB] [CPU: ▼4.05ms] Passed 4 tests

Server-side resources used by Premium Portfolio Features for Phlox theme
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.10 ▼2.01
Dashboard /wp-admin3.36 ▲0.0144.58 ▼14.90
Posts /wp-admin/edit.php3.47 ▲0.1247.56 ▼0.47
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.92 ▲3.08
Media Library /wp-admin/upload.php3.28 ▲0.0536.54 ▲1.19

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 78 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Premium Portfolio Features for Phlox theme
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲5414.25 ▼0.511.64 ▼0.4942.37 ▼9.89
Dashboard /wp-admin2,195 ▲145.64 ▼0.0392.13 ▼24.7536.89 ▼5.05
Posts /wp-admin/edit.php2,103 ▲31.97 ▼0.1843.88 ▲5.7736.78 ▲3.34
Add New Post /wp-admin/post-new.php1,526 ▼023.20 ▲0.11686.14 ▲41.4946.59 ▼5.46
Media Library /wp-admin/upload.php1,400 ▼04.19 ▲0.03104.40 ▲8.7543.72 ▲3.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/auxin-portfolio/auxin-portfolio.php
    • > /wp-content/plugins/auxin-portfolio/uninstall.php
    • > /wp-content/plugins/auxin-portfolio/public/includes/index.php
  • 24× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Warning
      Use of undefined constant AUXPFO_INC_DIR - assumed 'AUXPFO_INC_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/auxin-portfolio/public/class-auxpfo.php on line 111
    • > PHP Warning
      include_once(): Failed opening 'AUXPFO_INC_DIR/index.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/auxin-portfolio/public/class-auxpfo.php on line 111
    • > PHP Fatal error
      Uncaught Error: Call to undefined function auxpfo_get_portfolio_config() in wp-content/plugins/auxin-portfolio/public/templates/theme-parts/entry/single-portfolio.php:4
    • > PHP Warning
      include_once(AUXPFO_INC_DIR/index.php): failed to open stream: No such file or directory in wp-content/plugins/auxin-portfolio/public/class-auxpfo.php on line 111
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auxin-portfolio/public/includes/class-auxpfo-frontend-assets.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function auxin_get_option() in wp-content/plugins/auxin-portfolio/public/templates/theme-parts/entry/portfolio.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/auxin-portfolio/public/templates/archive-portfolio.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_query_var() in wp-content/plugins/auxin-portfolio/public/templates/theme-parts/loop-portfolio.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function auxpfo_get_portfolio_config() in wp-content/plugins/auxin-portfolio/public/templates/theme-parts/entry/portfolio-land.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auxin-portfolio/admin/includes/admin-ajax.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
Please take inspiration from this readme.txt

auxin-portfolio/auxin-portfolio.php Passed 13 tests

The main PHP script in "Premium Portfolio Features for Phlox theme" version 2.3.2 is automatically included on every request by WordPress
49 characters long description:
Showcase your projects beautifully in Phlox theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected14,187 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP491,6871,62812,434
PO File15981,3561,318
JavaScript46211403
XML10032

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.87
▷ Minimum class complexity1.00
▷ Maximum class complexity65.00
Average method complexity2.41
▷ Minimum method complexity1.00
▷ Maximum method complexity24.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes16.67%
Methods105
▷ Static methods1110.48%
▷ Public methods8580.95%
▷ Protected methods1211.43%
▷ Private methods87.62%
Functions90
▷ Named functions2932.22%
▷ Anonymous functions6167.78%
Constants12
▷ Global constants12100.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/assets/images/ClassicLightbox.png41.51KB20.07KB▼ 51.64%