89% easy-post-taxonomy-builder

Code Review | Post Type and Taxonomy Builder

WordPress plugin Post Type and Taxonomy Builder scored89%from 54 tests.

About plugin

  • Plugin page: easy-post-taxonom...
  • Plugin version: 2.0.0
  • PHP compatiblity: 5.5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-6.2.2
  • WordPress version: 6.3.1
  • First release: Oct 28, 2019
  • Latest release: Aug 21, 2023
  • Number of updates: 8
  • Update frequency: every 174.3 days
  • Top authors: postandtaxbuilder (62.5%)surror (50%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /907 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.67MB] [CPU: ▼0.19ms] Passed 4 tests

An overview of server-side resources used by Post Type and Taxonomy Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /4.11 ▲0.6550.66 ▲10.16
Dashboard /wp-admin4.02 ▲0.7154.81 ▲0.83
Posts /wp-admin/edit.php4.07 ▲0.7252.81 ▼0.14
Add New Post /wp-admin/post-new.php6.54 ▲0.6593.38 ▼7.38
Media Library /wp-admin/upload.php3.88 ▲0.6546.38 ▲5.92
Library /wp-admin/admin.php?page=easy-post-tax-page3.8539.66
Post Types /wp-admin/edit.php?post_type=easy-post3.9241.76
Taxonomies /wp-admin/edit.php?post_type=easy-tax3.9238.04

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Post Type and Taxonomy Builder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,874 ▲8814.26 ▼0.281.96 ▼0.1643.55 ▼3.35
Dashboard /wp-admin2,259 ▲825.64 ▲0.0195.71 ▲4.4741.82 ▲1.36
Posts /wp-admin/edit.php2,164 ▲642.03 ▼0.0036.97 ▼4.9735.59 ▲0.82
Add New Post /wp-admin/post-new.php1,566 ▲4022.95 ▼0.28674.71 ▼39.2458.39 ▼5.87
Media Library /wp-admin/upload.php1,464 ▲644.15 ▼0.03113.19 ▲8.5747.76 ▲2.70
Library /wp-admin/admin.php?page=easy-post-tax-page2,6722.1829.9444.00
Post Types /wp-admin/edit.php?post_type=easy-post1,1241.9333.2632.21
Taxonomies /wp-admin/edit.php?post_type=easy-tax1,1241.9631.9431.28

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions 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
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed: The official readme.txt is a good inspiration

easy-post-taxonomy-builder/easy-post-tax-builder.php 85% from 13 tests

"Post Type and Taxonomy Builder" version 2.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("easy-post-taxonomy-builder.php" instead of "easy-post-tax-builder.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin4,206 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP153017973,337
CSS3865524
JavaScript38426332
SVG2008
JSON1005

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity36.56
▷ Minimum class complexity1.00
▷ Maximum class complexity165.00
Average method complexity4.71
▷ Minimum method complexity1.00
▷ Maximum method complexity44.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes111.11%
Methods88
▷ Static methods2427.27%
▷ Public methods8192.05%
▷ Protected methods00.00%
▷ Private methods77.95%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants5
▷ Global constants5100.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
No PNG images were found in this plugin