83% custom-post-type-grids

Code Review | Custom Post Type Grid

WordPress plugin Custom Post Type Grid scored 83% from 54 tests.

About plugin

  • Plugin page: custom-post-type-...
  • Plugin version: 1...
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.1
  • WordPress version: 6.3.1
  • First release: Mar 15, 2023
  • Latest release: Mar 15, 2023
  • Number of updates: 2
  • Update frequency: every 5.5 days
  • Top authors: ajaymalik14 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 145 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.74ms] Passed 4 tests

A check of server-side resources used by Custom Post Type Grid
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.64 ▼3.96
Dashboard /wp-admin3.33 ▲0.0244.55 ▼3.80
Posts /wp-admin/edit.php3.38 ▲0.0247.05 ▲1.54
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.50 ▼20.72
Media Library /wp-admin/upload.php3.25 ▲0.0239.63 ▲3.07

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Custom Post Type Grid
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6614.45 ▲0.061.84 ▲0.0743.23 ▲3.07
Dashboard /wp-admin2,218 ▲275.83 ▼0.0793.54 ▼7.9637.37 ▼5.37
Posts /wp-admin/edit.php2,104 ▲151.99 ▼0.0646.68 ▲7.1637.39 ▲0.96
Add New Post /wp-admin/post-new.php1,524 ▼517.58 ▼1.10667.67 ▲12.9246.09 ▼12.65
Media Library /wp-admin/upload.php1,400 ▲124.23 ▼0.0293.22 ▼17.8444.67 ▼6.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-post-type-grids/index.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 87% 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
Please fix the following attributes:
  • Screenshots: Screenshot #1 (Image Showing Shortcode generator) image missing
  • Donate link: Please fix this invalid url: ""
The official readme.txt is a good inspiration

custom-post-type-grids/index.php 85% from 13 tests

The primary PHP file in "Custom Post Type Grid" version 1... is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-post-type-grids.php" instead of "index.php")
  • Version: The version number should only use digits and periods (ex. "1.0.3" instead of "1...")

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
There were no executable files found in this plugin138 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13014138

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 problems
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
Functions4
▷ Named functions4100.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
PNG images were not found in this plugin