84% mbaierl-projects-cpt

Code Review | Projects Custom Post Type by mbaierl

WordPress plugin Projects Custom Post Type by mbaierl scored 84% from 54 tests.

About plugin

  • Plugin page: mbaierl-projects-cpt
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.0
  • WordPress version: 6.3.1
  • First release: Jan 17, 2021
  • Latest release: Aug 2, 2021
  • Number of updates: 7
  • Update frequency: every 34.6 days
  • Top authors: mbaierl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 476 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.06MB] [CPU: ▼1.56ms] Passed 4 tests

A check of server-side resources used by Projects Custom Post Type by mbaierl
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0740.33 ▼1.25
Dashboard /wp-admin3.36 ▲0.0545.25 ▼0.84
Posts /wp-admin/edit.php3.41 ▲0.0548.79 ▲3.95
Add New Post /wp-admin/post-new.php6.10 ▲0.2195.53 ▼2.41
Media Library /wp-admin/upload.php3.28 ▲0.0532.79 ▼1.75
Add New /wp-admin/post-new.php?post_type=project6.1084.33
Tags /wp-admin/edit-tags.php?taxonomy=project_tag&post_type=project3.2732.09
Categories /wp-admin/edit-tags.php?taxonomy=project_category&post_type=project3.2732.65
All Projects /wp-admin/edit.php?post_type=project3.3236.98

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Projects Custom Post Type by mbaierl
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.66 ▼0.641.95 ▲0.1544.88 ▼0.52
Dashboard /wp-admin2,241 ▲534.88 ▼1.02105.45 ▲0.5040.15 ▼2.77
Posts /wp-admin/edit.php2,124 ▲322.02 ▼0.0039.67 ▲0.8534.70 ▼0.05
Add New Post /wp-admin/post-new.php1,548 ▲1523.37 ▲0.32615.60 ▲24.1253.56 ▲3.96
Media Library /wp-admin/upload.php1,423 ▲384.26 ▲0.0296.48 ▼2.3541.42 ▼1.96
Add New /wp-admin/post-new.php?post_type=project1,57217.09913.6735.81
Tags /wp-admin/edit-tags.php?taxonomy=project_tag&post_type=project1,2722.1427.4030.15
Categories /wp-admin/edit-tags.php?taxonomy=project_category&post_type=project1,2972.1427.8328.70
All Projects /wp-admin/edit.php?post_type=project1,1551.9530.8034.03

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 2× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mbaierl-projects-cpt/mbaierl-projects-cpt.php
    • > /wp-content/plugins/mbaierl-projects-cpt/includes/divi-projects-cpt.php

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 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Requires php: Version not formatted correctly
You can take inspiration from this readme.txt

mbaierl-projects-cpt/mbaierl-projects-cpt.php 92% from 13 tests

This is the main PHP file of "Projects Custom Post Type by mbaierl" version 0.1, 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:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters

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
Success! There were no dangerous files found in this plugin196 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP21626100
PO File1394396

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.24
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin