84% carousel-for-awesome-filterable-portfolio

Code Review | Carousel for Awesome Filterable Portfolio

WordPress plugin Carousel for Awesome Filterable Portfolio scored84%from 54 tests.

About plugin

  • Plugin page: carousel-for-awes...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.9
  • WordPress version: 6.3.1
  • First release: Sep 20, 2014
  • Latest release: Oct 18, 2014
  • Number of updates: 14
  • Update frequency: every 2.1 days
  • Top authors: nrichsystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,235 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.85ms] Passed 4 tests

A check of server-side resources used by Carousel for Awesome Filterable Portfolio
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.81 ▲0.14
Dashboard /wp-admin3.32 ▼0.0254.39 ▼7.04
Posts /wp-admin/edit.php3.37 ▲0.0249.83 ▼1.26
Add New Post /wp-admin/post-new.php5.90 ▲0.02110.32 ▲8.62
Media Library /wp-admin/upload.php3.25 ▲0.0240.01 ▲0.75

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Carousel for Awesome Filterable Portfolio
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,942 ▲18113.73 ▼0.8512.04 ▲10.1443.86 ▲1.84
Dashboard /wp-admin2,198 ▲215.57 ▼0.1390.03 ▼4.7047.04 ▲5.52
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0733.05 ▼9.2935.69 ▼3.75
Add New Post /wp-admin/post-new.php1,526 ▼223.21 ▲0.19664.15 ▲34.2957.11 ▲5.10
Media Library /wp-admin/upload.php1,397 ▼64.20 ▲0.09100.23 ▼1.4443.59 ▲1.81

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/carousel-for-awesome-filterable-portfolio/plugin.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: portfolio, carousel, elastic slider, awesome filterable, responsive...

carousel-for-awesome-filterable-portfolio/plugin.php 85% from 13 tests

This is the main PHP file of "Carousel for Awesome Filterable Portfolio" version 1.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: Name the main plugin file the same as the plugin slug ("carousel-for-awesome-filterable-portfolio.php" instead of "plugin.php")
  • Description: The description should be shorter than 140 characters (currently 225 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin984 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript3285191649
CSS372103241
PHP1322694

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.09
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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
7 PNG files occupy 0.33MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png147.90KB48.84KB▼ 66.98%
inline-preview-image.png170.00KB51.66KB▼ 69.61%
resources/images/black_denim.png9.78KB10.98KB0.00%
resources/images/nav.png0.78KB0.46KB▼ 40.28%
resources/images/carousel-arrow-left.png6.78KB2.64KB▼ 61.12%