88% simple-filterable-portfolio

Code Review | Simple Filterable Portfolio

WordPress plugin Simple Filterable Portfolio scored 88% from 54 tests.

About plugin

  • Plugin page: simple-filterable...
  • Plugin version: 2.0.15
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Apr 27, 2018
  • Latest release: Apr 23, 2020
  • Number of updates: 6
  • Update frequency: every 121.2 days
  • Top authors: mdshuvo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 648 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼136.58ms] Passed 4 tests

Analyzing server-side resources used by Simple Filterable Portfolio
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1836.39 ▲14.63
Dashboard /wp-admin3.13 ▲0.0744.95 ▼2.34
Posts /wp-admin/edit.php3.21 ▲0.1046.79 ▲9.70
Add New Post /wp-admin/post-new.php5.48 ▲0.0589.73 ▼556.93
Media Library /wp-admin/upload.php3.07 ▲0.0739.39 ▲3.24
Portfolio /wp-admin/edit.php?post_type=portfolio3.1133.79
Add New /wp-admin/post-new.php?post_type=portfolio3.1750.73
Filters /wp-admin/edit-tags.php?taxonomy=filters&post_type=portfolio3.0733.48

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Simple Filterable Portfolio
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,747 ▲15115.96 ▲0.3111.15 ▲0.9544.54 ▼6.99
Dashboard /wp-admin3,007 ▲765.89 ▼0.20144.58 ▲1.35103.15 ▼9.45
Posts /wp-admin/edit.php2,779 ▲402.72 ▲0.0166.35 ▼1.3184.62 ▼4.67
Add New Post /wp-admin/post-new.php1,524 ▼9118.81 ▼2.75378.18 ▲90.60109.67 ▲6.59
Media Library /wp-admin/upload.php1,847 ▲375.03 ▲0.01152.92 ▼19.26119.95 ▲6.85
Portfolio /wp-admin/edit.php?post_type=portfolio1,4432.6462.4771.29
Add New /wp-admin/post-new.php?post_type=portfolio3,0208.90234.16130.23
Filters /wp-admin/edit-tags.php?taxonomy=filters&post_type=portfolio1,7792.4163.7776.95

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstaller ran successfully

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/simple-filterable-portfolio/simple-filterable-portfolio.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-filterable-portfolio/inc/asrsfp-register-post-types.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add descriptions for screenshots #2, #3 in simple-filterable-portfolio/assets to your readme.txt
  • Tags: You are using too many tags: 11 tag instead of maximum 10
The official readme.txt is a good inspiration

simple-filterable-portfolio/simple-filterable-portfolio.php Passed 13 tests

"Simple Filterable Portfolio" version 2.0.15's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
Simple Plugin for creating a filterable portfolio gallery with MixitUp and Magnify Popup

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin2,115 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript34693481,343
CSS4467589
PHP22335183

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin