89% easy-custom-post-type-maker

Code Review | Easy Custom Post Type Maker

WordPress plugin Easy Custom Post Type Maker scored89%from 54 tests.

About plugin

  • Plugin page: easy-custom-post-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-4.7.2
  • WordPress version: 6.3.1
  • First release: Feb 27, 2017
  • Latest release: Mar 1, 2017
  • Number of updates: 7
  • Update frequency: every 0.3 days
  • Top authors: cleantoshine (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /573 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.31MB] [CPU: ▼3.93ms] Passed 4 tests

Analyzing server-side resources used by Easy Custom Post Type Maker
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.77 ▲0.3147.05 ▲7.73
Dashboard /wp-admin3.61 ▲0.3053.16 ▼5.16
Posts /wp-admin/edit.php3.67 ▲0.3160.33 ▲2.77
Add New Post /wp-admin/post-new.php6.19 ▲0.3191.46 ▼15.90
Media Library /wp-admin/upload.php3.54 ▲0.3140.13 ▲2.57
Taxonomies /wp-admin/edit.php?post_type=ecptm_tax3.5840.19
Easy Post Types /wp-admin/edit.php?post_type=ecptm3.5838.52

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Easy Custom Post Type Maker
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,881 ▲13513.40 ▼0.991.90 ▲0.0845.34 ▼0.23
Dashboard /wp-admin2,284 ▲935.82 ▲0.93100.19 ▼13.2041.23 ▼6.31
Posts /wp-admin/edit.php2,170 ▲782.05 ▲0.0540.31 ▲3.7535.51 ▼0.13
Add New Post /wp-admin/post-new.php1,612 ▲9323.32 ▲0.18595.43 ▼55.6672.11 ▲18.39
Media Library /wp-admin/upload.php1,472 ▲874.19 ▼0.0496.03 ▼8.2743.01 ▼7.74
Taxonomies /wp-admin/edit.php?post_type=ecptm_tax1,1722.0239.3942.05
Easy Post Types /wp-admin/edit.php?post_type=ecptm1,1802.0339.4539.00

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 detected upon uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 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)
Even though no errors were found, 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 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% 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
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Creating Custom Post Types), #2 (Overview of your created Custom Post Types), #3 (Creating custom Taxonomies)
You can look at the official readme.txt

easy-custom-post-type-maker/easy-custom-post-type-maker.php Passed 13 tests

This is the main PHP file of "Easy Custom Post Type Maker" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
108 characters long description:
Easy Custom Post Type Maker create Custom Post Types and custom Taxonomies in a user friendly very easy way.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,327 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1170941,131
CSS23313146
JavaScript210050

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity246.00
▷ Minimum class complexity246.00
▷ Maximum class complexity246.00
Average method complexity14.61
▷ Minimum method complexity1.00
▷ Maximum method complexity78.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.62MB with 0.44MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png375.83KB107.04KB▼ 71.52%
screenshot-3.png161.24KB44.35KB▼ 72.50%
screenshot-2.png97.66KB29.19KB▼ 70.11%