74% responsive-filterable-portfolio

Code Review | Responsive Filterable Portfolio

WordPress plugin Responsive Filterable Portfolio scored74%from 54 tests.

About plugin

  • Plugin page: responsive-filter...
  • Plugin version: 1.0.22
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.3
  • WordPress version: 6.3.1
  • First release: Jan 2, 2016
  • Latest release: Aug 27, 2023
  • Number of updates: 45
  • Update frequency: every 62.1 days
  • Top authors: nik00726 (100%)

Code review

54 tests

User reviews

18 reviews

Install metrics

2,000+ active /66,452 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.51MB] [CPU: ▼1.93ms] Passed 4 tests

An overview of server-side resources used by Responsive Filterable Portfolio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.97 ▲0.5143.90 ▼2.59
Dashboard /wp-admin3.82 ▲0.5250.52 ▼3.45
Posts /wp-admin/edit.php3.93 ▲0.5855.29 ▲10.62
Add New Post /wp-admin/post-new.php6.40 ▲0.5295.25 ▼5.77
Media Library /wp-admin/upload.php3.74 ▲0.5141.49 ▲4.09
Preview Portfolio /wp-admin/admin.php?page=responsive_portfolio_with_lightbox_media_preview3.7443.43
Portfolio Settings /wp-admin/admin.php?page=responsive_portfolio_with_lightbox3.7247.28
Manage Media /wp-admin/admin.php?page=responsive_portfolio_with_lightbox_media_management3.7444.65

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: 1 new table, 8 new options
New tables
wp_e_portfolio
New WordPress options
db_upgraded
widget_theysaidso_widget
best_portfolio_grid_settings
wp_best_portfolio_msg
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Responsive Filterable Portfolio
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲5914.28 ▼0.071.61 ▼0.6342.61 ▼2.97
Dashboard /wp-admin2,229 ▲495.63 ▲0.0090.90 ▲1.5836.73 ▼4.28
Posts /wp-admin/edit.php2,131 ▲312.01 ▲0.0534.45 ▼3.3333.84 ▼2.02
Add New Post /wp-admin/post-new.php1,551 ▲1623.66 ▼1.67690.19 ▲0.7951.04 ▼15.11
Media Library /wp-admin/upload.php1,434 ▲344.20 ▲0.0696.68 ▼39.5542.78 ▼1.02
Preview Portfolio /wp-admin/admin.php?page=responsive_portfolio_with_lightbox_media_preview1,1803.5245.9175.32
Portfolio Settings /wp-admin/admin.php?page=responsive_portfolio_with_lightbox1,5324.93107.1777.02
Manage Media /wp-admin/admin.php?page=responsive_portfolio_with_lightbox_media_management1,3504.4488.9767.87

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie tables detected upon uninstall: 1 table
    • wp_e_portfolio
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • wp_best_portfolio_msg
    • best_portfolio_grid_settings
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 50% 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/responsive-filterable-portfolio/wp-best-portfolio.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
10 plugin tags: wordpress filterable portfolio plugin, portfolio gallery, responsive media gallery, wordpress media gallery, media grid...

responsive-filterable-portfolio/wp-best-portfolio.php 92% from 13 tests

Analyzing the main PHP file in "Responsive Filterable Portfolio" version 1.0.22
Please take the time to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("responsive-filterable-portfolio.php" instead of "wp-best-portfolio.php")

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
Everything looks great! No dangerous files found in this plugin4,666 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP18151273,049
JavaScript3434671,093
CSS311636524

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions25
▷ Named functions2496.00%
▷ Anonymous functions14.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
15 compressed PNG files occupy 0.13MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/vl-box/playico2.png0.93KB0.91KB▼ 2.41%
images/red-play.png3.56KB2.13KB▼ 40.27%
images/desc.png0.16KB0.12KB▼ 23.31%
images/video.png0.66KB0.73KB0.00%
images/playico.png0.93KB0.91KB▼ 2.41%