84% your-custom-post-type

Code Review | Business Review Custom Post

WordPress plugin Business Review Custom Post scored84%from 54 tests.

About plugin

  • Plugin page: your-custom-post-...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.0.4
  • WordPress version: 6.3.1
  • First release: Jul 23, 2019
  • Latest release: Aug 26, 2019
  • Number of updates: 6
  • Update frequency: every 30.8 days
  • Top authors: ministryofcleaningau (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /442 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.38ms] Passed 4 tests

Analyzing server-side resources used by Business Review Custom Post
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.99 ▼3.66
Dashboard /wp-admin3.35 ▲0.0550.02 ▼2.58
Posts /wp-admin/edit.php3.40 ▲0.0566.22 ▲15.08
Add New Post /wp-admin/post-new.php5.93 ▲0.0593.11 ▼13.86
Media Library /wp-admin/upload.php3.27 ▲0.0538.25 ▲2.57
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=business_review3.2738.86
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=business_review3.2734.99
All Reviews /wp-admin/edit.php?post_type=business_review3.3337.92
Add New /wp-admin/post-new.php?post_type=business_review3.4158.88

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
category_children

Browser metrics Passed 4 tests

A check of browser resources used by Business Review Custom Post
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,863 ▲11714.85 ▲0.471.83 ▲0.0441.35 ▼1.28
Dashboard /wp-admin2,241 ▲534.87 ▼1.18111.46 ▲6.8637.30 ▼8.00
Posts /wp-admin/edit.php2,127 ▲412.02 ▲0.0243.74 ▲5.8539.73 ▲6.18
Add New Post /wp-admin/post-new.php1,567 ▲3023.06 ▼0.24675.96 ▲17.5762.74 ▲10.57
Media Library /wp-admin/upload.php1,426 ▲384.22 ▼0.0699.24 ▼9.8644.79 ▼2.29
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=business_review1,4752.1428.0234.91
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=business_review1,3422.1430.0329.62
All Reviews /wp-admin/edit.php?post_type=business_review1,1431.9332.8232.45
Add New /wp-admin/post-new.php?post_type=business_review2,6868.05173.7680.86

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • category_children
    • 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 shallow check for server-side errors
Even though no errors were found, 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
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/your-custom-post-type/custom_post.php:67

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Requires php: Invalid plugin version format
You can look at the official readme.txt

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

The entry point to "Business Review Custom Post" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("your-custom-post-type.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
Everything looks great! No dangerous files found in this plugin119 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11532114
CSS1005

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin