78% arconix-portfolio

Code Review | Arconix Portfolio

WordPress plugin Arconix Portfolio scored78%from 54 tests.

About plugin

  • Plugin page: arconix-portfolio
  • Plugin version: 1.6.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.7
  • WordPress version: 6.3.1
  • First release: Dec 1, 2011
  • Latest release: Mar 15, 2021
  • Number of updates: 55
  • Update frequency: every 62.1 days
  • Top authors: jgardner03 (72.73%)tychesoftwares (29.09%)

Code review

54 tests

User reviews

11 reviews

Install metrics

100+ active /20,026 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

An overview of server-side resources used by Arconix Portfolio
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5040.99 ▼0.39
Dashboard /wp-admin3.98 ▲0.6439.81 ▼9.13
Posts /wp-admin/edit.php4.22 ▲0.8256.05 ▲6.91
Add New Post /wp-admin/post-new.php6.72 ▲0.8089.38 ▼8.33
Media Library /wp-admin/upload.php4.06 ▲0.7941.66 ▲2.81
Add New /wp-admin/post-new.php?post_type=portfolio4.5259.09
Portfolio /wp-admin/edit.php?post_type=portfolio4.1046.03
Features /wp-admin/edit-tags.php?taxonomy=feature&post_type=portfolio4.0537.49

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 473 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Arconix Portfolio
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲13814.44 ▲0.091.68 ▼0.0342.86 ▼2.57
Dashboard /wp-admin2,288 ▲1085.66 ▲0.0584.52 ▼4.7477.46 ▲35.66
Posts /wp-admin/edit.php2,144 ▲442.05 ▲0.1037.74 ▲2.2831.94 ▼1.25
Add New Post /wp-admin/post-new.php1,561 ▲3523.22 ▲0.40671.52 ▼22.7156.50 ▼6.56
Media Library /wp-admin/upload.php1,447 ▲474.29 ▲0.18101.21 ▼5.0344.90 ▼1.11
Add New /wp-admin/post-new.php?post_type=portfolio2,3887.88178.0665.40
Portfolio /wp-admin/edit.php?post_type=portfolio1,1401.9735.3031.45
Features /wp-admin/edit-tags.php?taxonomy=feature&post_type=portfolio1,2922.3027.2225.77

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 0% 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 output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/arconix-portfolio/includes/metabox/tests/phpunit/includes/bootstrap.php
    • > /wp-content/plugins/arconix-portfolio/includes/metabox/apigen/hook-docs.php
  • 59× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/arconix-portfolio/includes/metabox/includes/types/CMB2_Type_Select.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/arconix-portfolio/includes/metabox/includes/CMB2_hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/arconix-portfolio/includes/metabox/tests/cmb-tests-base.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/arconix-portfolio/includes/metabox/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/arconix-portfolio/includes/metabox/tests/cmb-tests-base.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/arconix-portfolio/includes/metabox/tests/cmb-tests-base.php:10
    • > PHP Fatal error
      require_once(): Failed opening required '/includes/functions.php' (include_path='.:/usr/share/php') in wp-content/plugins/arconix-portfolio/includes/metabox/tests/bootstrap.php on line 24
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/arconix-portfolio/includes/metabox/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/arconix-portfolio/includes/metabox/tests/cmb-tests-base.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/arconix-portfolio/includes/metabox/includes/types/CMB2_Type_Radio.php:13

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 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: portfolio, arconix, portfolio gallery, quicksand

arconix-portfolio/plugin.php 92% from 13 tests

This is the main PHP file of "Arconix Portfolio" version 1.6.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("arconix-portfolio.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected68,258 lines of code in 287 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP843,6127,89813,256
CSS184261,2335,585
JavaScript249091,3935,485
XML3014,515
JSON5004,368
Sass17305251,408
Markdown82850885
Bourne Shell46745209
YAML2116190
diff216834

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity18.57
▷ Minimum class complexity1.00
▷ Maximum class complexity185.00
Average method complexity2.73
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes99
▷ Abstract classes1212.12%
▷ Concrete classes8787.88%
▷ Final classes00.00%
Methods1,006
▷ Static methods13113.02%
▷ Public methods86285.69%
▷ Protected methods13713.62%
▷ Private methods70.70%
Functions37
▷ Named functions37100.00%
▷ Anonymous functions00.00%
Constants13
▷ Global constants753.85%
▷ Class constants646.15%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
29 PNG files occupy 0.35MB with 0.09MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png100.14KB29.56KB▼ 70.48%
includes/metabox/apigen/theme-bootstrap/src/resources/inherit.png0.15KB0.10KB▼ 29.61%
includes/metabox/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
includes/metabox/images/ui-icons_888888_256x240.png5.23KB4.11KB▼ 21.49%
includes/metabox/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%