10% custom-post-type-gui

Code Review | Custom Post

WordPress plugin Custom Post scored10%from 54 tests.

About plugin

  • Plugin page: custom-post-type-gui
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.7.1
  • WordPress version: 6.3.1
  • First release: Nov 21, 2013
  • Latest release: Nov 21, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: syedamirhussain91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /4,905 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/custom-post-type-gui/custom-post.php+147
    Undefined index: sy_act

Server metrics [RAM: ▼1.91MB] [CPU: ▼51.02ms] Passed 4 tests

An overview of server-side resources used by Custom Post
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.62 ▼36.86
Dashboard /wp-admin2.09 ▼1.215.04 ▼42.31
Posts /wp-admin/edit.php2.09 ▼1.266.33 ▼39.30
Add New Post /wp-admin/post-new.php2.09 ▼3.795.62 ▼85.60
Media Library /wp-admin/upload.php2.09 ▼1.145.21 ▼27.78

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Custom Post
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.19 ▼1.371.57 ▼0.2039.70 ▼4.29
Dashboard /wp-admin2,222 ▲314.84 ▼0.03110.85 ▼1.3341.42 ▼2.67
Posts /wp-admin/edit.php2,105 ▲131.98 ▼0.0439.81 ▲2.3836.61 ▲0.17
Add New Post /wp-admin/post-new.php1,546 ▲3223.09 ▲5.40644.42 ▼38.9759.19 ▼9.35
Media Library /wp-admin/upload.php1,404 ▲164.22 ▲0.0093.88 ▼3.1041.55 ▼2.14

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 cannot be uninstalled
    • > Notice in wp-content/plugins/custom-post-type-gui/custom-post.php+147
    Undefined index: sy_act
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/custom-post-type-gui/custom-post.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that require attention:
  • Plugin Name: Please specify the plugin name on the first line ( === custom-post-type-gui === )
You can look at the official readme.txt

custom-post-type-gui/custom-post.php 92% from 13 tests

The principal PHP file in "Custom Post" v. 1.0 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-post-type-gui.php" instead of "custom-post.php")

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 plugin136 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1113136

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin