84% istk-add-on

Code Review | ISTK Add-On

WordPress plugin ISTK Add-On scored84%from 54 tests.

About plugin

  • Plugin page: istk-add-on
  • Plugin version: 1.2
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.8
  • WordPress version: 6.3.1
  • First release: Apr 7, 2021
  • Latest release: Sep 29, 2021
  • Number of updates: 10
  • Update frequency: every 17.6 days
  • Top authors: niao70 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,064 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.19MB] [CPU: ▼4.33ms] Passed 4 tests

A check of server-side resources used by ISTK Add-On
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1542.44 ▲0.82
Dashboard /wp-admin3.55 ▲0.2056.04 ▼8.16
Posts /wp-admin/edit.php3.60 ▲0.2555.61 ▲8.01
Add New Post /wp-admin/post-new.php6.28 ▲0.3989.08 ▼9.89
Media Library /wp-admin/upload.php3.39 ▲0.1640.01 ▼0.08
Add New /wp-admin/post-new.php?post_type=istk_news6.2787.39
Productions /wp-admin/edit.php?post_type=istk_portfolio3.4646.37
Production Tag /wp-admin/edit-tags.php?taxonomy=istk_portfolio_tag&post_type=istk_portfolio3.4141.18
Add New /wp-admin/post-new.php?post_type=istk_portfolio6.2883.68
ISTK Portfolio Settings /wp-admin/options-general.php?page=istk_add_on_setting3.3840.77
News /wp-admin/edit.php?post_type=istk_news3.4642.10
Production Category /wp-admin/edit-tags.php?taxonomy=istk_portfolio_category&post_type=istk_portfolio3.4138.27

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

Browser metrics Passed 4 tests

ISTK Add-On: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,058 ▲27214.65 ▲0.662.09 ▼0.2443.78 ▲2.17
Dashboard /wp-admin2,434 ▲2286.46 ▲0.65136.22 ▲24.1740.98 ▼4.45
Posts /wp-admin/edit.php2,333 ▲2333.29 ▲1.2552.96 ▲14.4735.29 ▼0.29
Add New Post /wp-admin/post-new.php1,741 ▲21022.12 ▼1.24617.78 ▼45.9229.55 ▼24.25
Media Library /wp-admin/upload.php1,470 ▲734.15 ▼0.0383.19 ▼15.8042.78 ▼3.40
Add New /wp-admin/post-new.php?post_type=istk_news6,24923.09852.7330.03
Productions /wp-admin/edit.php?post_type=istk_portfolio1,3303.2944.9728.00
Production Tag /wp-admin/edit-tags.php?taxonomy=istk_portfolio_tag&post_type=istk_portfolio1,4823.1840.8229.51
Add New /wp-admin/post-new.php?post_type=istk_portfolio1,67216.85765.6342.65
ISTK Portfolio Settings /wp-admin/options-general.php?page=istk_add_on_setting1,2043.0740.54120.28
News /wp-admin/edit.php?post_type=istk_news1,3173.2744.5127.15
Production Category /wp-admin/edit-tags.php?taxonomy=istk_portfolio_category&post_type=istk_portfolio1,5253.1542.2330.20

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
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

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
  • 10× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/istk-add-on/views/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/istk-add-on/includes/settings.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/istk-add-on/includes/template-functions.php:211
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/istk-add-on/includes/add-category-image.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/istk-add-on/includes/portfolio-metas.php:32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/istk-add-on/istk-add-on.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/istk-add-on/includes/shortcodes.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/istk-add-on/templates/single-istk_portfolio.php:1
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/istk-add-on/includes/templates.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/istk-add-on/includes/post-type.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: portfolio, artist

istk-add-on/istk-add-on.php Passed 13 tests

The entry point to "ISTK Add-On" version 1.2 is a PHP file that has certain tags in its header comment area
53 characters long description:
This plugin adds features for theme "ISTK Portfolio".

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
There were no executable files found in this plugin1,152 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP11205131716
Sass83810217
CSS246185
JavaScript114834

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions41
▷ Named functions41100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/magazine-header.png22.27KB12.46KB▼ 44.07%