84% siliconfolio

Code Review | Portfolio Gallery With Filters / SILICONFOLIO

WordPress plugin Portfolio Gallery With Filters / SILICONFOLIO scored84%from 54 tests.

About plugin

  • Plugin page: siliconfolio
  • Plugin version: 1.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9
  • WordPress version: 6.3.1
  • First release: Aug 3, 2016
  • Latest release: Nov 25, 2017
  • Number of updates: 43
  • Update frequency: every 11.1 days
  • Top authors: siliconthemes (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

200+ active /12,385 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼7.99ms] Passed 4 tests

This is a short check of server-side resources used by Portfolio Gallery With Filters / SILICONFOLIO
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1542.60 ▼1.88
Dashboard /wp-admin3.44 ▲0.1050.07 ▼19.82
Posts /wp-admin/edit.php3.56 ▲0.2050.90 ▲2.09
Add New Post /wp-admin/post-new.php6.02 ▲0.1494.88 ▼6.35
Media Library /wp-admin/upload.php3.37 ▲0.1434.57 ▼3.91
Add New /wp-admin/post-new.php?post_type=portfolio3.5056.93
Portfolio /wp-admin/edit.php?post_type=portfolio3.4138.35
Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio3.3636.18
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio-tags&post_type=portfolio3.3642.72

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Portfolio Gallery With Filters / SILICONFOLIO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,994 ▲24813.59 ▼1.1710.62 ▲8.9440.03 ▼2.81
Dashboard /wp-admin2,232 ▲555.56 ▼0.1089.81 ▼1.5244.64 ▼1.16
Posts /wp-admin/edit.php2,137 ▲372.04 ▲0.0638.68 ▼0.2237.29 ▼0.74
Add New Post /wp-admin/post-new.php1,557 ▲2923.09 ▼0.17653.03 ▼28.6152.04 ▼7.77
Media Library /wp-admin/upload.php1,431 ▲344.21 ▲0.0198.59 ▼11.5843.76 ▼2.26
Add New /wp-admin/post-new.php?post_type=portfolio2,7537.65177.4770.52
Portfolio /wp-admin/edit.php?post_type=portfolio1,1511.9630.3229.92
Categories /wp-admin/edit-tags.php?taxonomy=portfolio-category&post_type=portfolio1,3142.1228.4932.02
Portfolio Tags /wp-admin/edit-tags.php?taxonomy=portfolio-tags&post_type=portfolio1,3112.2428.8229.68

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 50% 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/siliconfolio/siliconfolio.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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: You are using too many tags: 26 tag instead of maximum 10
You can look at the official readme.txt

siliconfolio/siliconfolio.php 92% from 13 tests

The main PHP file in "Portfolio Gallery With Filters / SILICONFOLIO" ver. 1.1.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 297 characters long)

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
Success! There were no dangerous files found in this plugin1,414 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
CSS3523732
PHP510079597
JavaScript4322085

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods120.00%
▷ Public methods480.00%
▷ Protected methods00.00%
▷ Private methods120.00%
Functions18
▷ Named functions18100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
framework/img/arr.png1.00KB0.22KB▼ 77.84%