89% post-category-image-with-grid-and-slider

Code Review | Post Category Image With Grid and Slider

WordPress plugin Post Category Image With Grid and Slider scored89%from 54 tests.

About plugin

  • Plugin page: post-category-ima...
  • Plugin version: 1.4.8
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1.1
  • WordPress version: 6.3.1
  • First release: Aug 25, 2017
  • Latest release: Jan 9, 2023
  • Number of updates: 44
  • Update frequency: every 44.6 days
  • Top authors: wponlinesupport (86.36%)anoopranawat (15.91%)

Code review

54 tests

User reviews

5 reviews

Install metrics

3,000+ active /46,330 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.18MB] [CPU: ▼3.15ms] Passed 4 tests

Server-side resources used by Post Category Image With Grid and Slider
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1745.46 ▼2.73
Dashboard /wp-admin3.48 ▲0.1750.70 ▼4.44
Posts /wp-admin/edit.php3.59 ▲0.2353.35 ▲2.45
Add New Post /wp-admin/post-new.php6.09 ▲0.2091.86 ▼7.86
Media Library /wp-admin/upload.php3.40 ▲0.1745.70 ▲7.79
Solutions & Features /wp-admin/admin.php?page=pciwgas-solutions-features3.4241.92
Category Image /wp-admin/admin.php?page=pciwgas-settings3.4042.62
Upgrade To Premium /wp-admin/admin.php?page=pciwgas-premium3.4039.32

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 8 new options
New WordPress options
pciwgas_options
pciwgas_plugin_version
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post Category Image With Grid and Slider
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲4514.35 ▲0.101.66 ▼0.8441.98 ▼4.79
Dashboard /wp-admin2,233 ▲565.55 ▼0.1092.00 ▲0.3740.65 ▼3.16
Posts /wp-admin/edit.php2,141 ▲412.04 ▲0.0641.01 ▲3.8036.23 ▲0.22
Add New Post /wp-admin/post-new.php6,230 ▲4,70419.59 ▼3.74944.08 ▲296.1453.43 ▼1.83
Media Library /wp-admin/upload.php1,435 ▲354.33 ▲0.13100.47 ▲0.4642.86 ▼2.99
Solutions & Features /wp-admin/admin.php?page=pciwgas-solutions-features1,4913.0239.1885.90
Category Image /wp-admin/admin.php?page=pciwgas-settings1,1393.1238.3027.01
Upgrade To Premium /wp-admin/admin.php?page=pciwgas-premium1,2632.9840.1182.03

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
These items require your attention
  • This plugin does not fully uninstall, leaving 8 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • pciwgas_plugin_version
    • widget_recent-comments
    • can_compress_scripts
    • pciwgas_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 11 tag instead of maximum 10
You can take inspiration from this readme.txt

post-category-image-with-grid-and-slider/post-category-image-with-grid-and-slider.php 77% from 13 tests

This is the main PHP file of "Post Category Image With Grid and Slider" version 1.4.8, 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:
  • Description: Please don't use more than 140 characters for the plugin description (currently 175 characters long)
  • Domain Path: Please prefix the domain path with a forward slash character ("/languages")
  • Domain Path: You should use only dashes and lowercase characters for the domain path ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin1,671 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP122483701,232
JavaScript59868320
CSS41112118
JSON1001

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity16.00
▷ Minimum class complexity10.00
▷ Maximum class complexity22.00
Average method complexity2.67
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions21
▷ Named functions21100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
7 PNG files occupy 0.34MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/popup-icon/popup-design.png7.53KB4.51KB▼ 40.14%
assets/images/image-upgrade.png295.08KB114.20KB▼ 61.30%
assets/images/popup-icon/14-days-money-back-guarantee.png30.03KB8.44KB▼ 71.91%
assets/images/popup-icon/post-grid.png4.67KB2.53KB▼ 45.73%
assets/images/rating.png0.85KB0.55KB▼ 34.41%