88% about-post-type

Code Review | About US Post Type

WordPress plugin About US Post Type scored 88% from 54 tests.

About plugin

  • Plugin page: about-post-type
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.6
  • WordPress version: 5.8.1
  • First release: Jan 23, 2017
  • Latest release: Jan 23, 2017
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: seosbg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,268 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼143.56ms] Passed 4 tests

A check of server-side resources used by About US Post Type
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.0326.52 ▲2.09
Dashboard /wp-admin3.11 ▲0.0436.41 ▼6.43
Posts /wp-admin/edit.php3.22 ▲0.1140.83 ▲6.26
Add New Post /wp-admin/post-new.php5.45 ▲0.0184.03 ▼567.10
Media Library /wp-admin/upload.php3.03 ▲0.0323.76 ▼2.81
All About US /wp-admin/edit.php?post_type=about_post_type3.1130.60
Add New /wp-admin/post-new.php?post_type=about_post_type3.1437.52

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for About US Post Type
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,028 ▲42617.58 ▲2.009.52 ▲4.5773.10 ▼2.98
Dashboard /wp-admin3,187 ▲2918.03 ▲1.90136.41 ▲4.31203.56 ▲29.99
Posts /wp-admin/edit.php3,024 ▲2845.06 ▲1.8476.58 ▲14.74159.67 ▲22.53
Add New Post /wp-admin/post-new.php3,507 ▼30117.96 ▲1.15400.43 ▼61.35190.64 ▲23.03
Media Library /wp-admin/upload.php1,811 ▲595.49 ▼0.02111.23 ▼32.73208.18 ▲21.22
All About US /wp-admin/edit.php?post_type=about_post_type1,7185.0373.25123.41
Add New /wp-admin/post-new.php?post_type=about_post_type2,8959.90188.00230.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check 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
Please take a closer look at the following
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/about-post-type/inc/front-end.php:52
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-post-type/about-post-type.php:19
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-post-type/inc/class-about-post-type.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/about-post-type/inc/thumbnails.php:7

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=about_post_type
    • > Network (severe)
    wp-content/plugins/about-post-type//js/admin.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)


Plugin configuration 97% 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
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (Admin Panel view of submitted form data.) image required
The official readme.txt is a good inspiration

about-post-type/about-post-type.php Passed 13 tests

The principal PHP file in "About US Post Type" v. 1.0 is loaded by WordPress automatically on each request
40 characters long description:
Simple WordPress About Post Type Plugin.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected337 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code

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.11
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions10100.00%
▷ Anonymous functions00.00%
▷ Global constants00.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
6 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.58KB1.43KB▼ 9.69%
screenshot-1.png133.27KB40.96KB▼ 69.26%
images/remove.png1.80KB1.48KB▼ 17.60%
images/find-img.png28.58KB10.85KB▼ 62.03%
images/logo.png11.25KB4.39KB▼ 60.99%