94% people-profile-cpt

Code Review | People Profile CPT

WordPress plugin People Profile CPT scored 94% from 54 tests.

About plugin

  • Plugin page: people-profile-cpt
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.8.1
  • WordPress version: 5.8.1
  • First release: Jan 21, 2014
  • Latest release: Mar 12, 2014
  • Number of updates: 7
  • Update frequency: every 7.3 days
  • Top authors: wpdevshed (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 27,651 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼135.56ms] Passed 4 tests

This is a short check of server-side resources used by People Profile CPT
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1834.04 ▲13.38
Dashboard /wp-admin3.13 ▲0.0750.13 ▲15.83
Posts /wp-admin/edit.php3.18 ▲0.0746.87 ▼0.02
Add New Post /wp-admin/post-new.php5.49 ▲0.0689.16 ▼553.71
Media Library /wp-admin/upload.php3.07 ▲0.0732.88 ▼1.87
All People /wp-admin/edit.php?post_type=people3.1133.73
Add New /wp-admin/post-new.php?post_type=people3.2052.61
People Categories /wp-admin/edit-tags.php?taxonomy=people_category&post_type=people3.0732.06

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

People Profile CPT: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,723 ▲12715.78 ▲0.188.55 ▼3.3253.95 ▲3.47
Dashboard /wp-admin3,010 ▲765.86 ▼0.26143.95 ▼9.27105.02 ▲0.47
Posts /wp-admin/edit.php2,779 ▲402.72 ▼0.0166.35 ▼0.6687.27 ▲2.47
Add New Post /wp-admin/post-new.php1,898 ▲21519.31 ▲1.26411.33 ▼9.55108.35 ▼0.70
Media Library /wp-admin/upload.php1,773 ▼345.02 ▼0.03153.75 ▼5.86110.04 ▼13.91
All People /wp-admin/edit.php?post_type=people1,4622.6272.7673.10
Add New /wp-admin/post-new.php?post_type=people3,7959.07228.56147.47
People Categories /wp-admin/edit-tags.php?taxonomy=people_category&post_type=people1,7942.3759.9775.72

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/people-profile-cpt/people-profile-cpt.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (screenshot-1.png displays the "Add New People" section), #2 (screenshot-2.png displays all the entries for "People" post type), #3 (screenshot-3.png displays the "People Category" section)
You can take inspiration from this readme.txt

people-profile-cpt/people-profile-cpt.php Passed 13 tests

The entry point to "People Profile CPT" version 1.1 is a PHP file that has certain tags in its header comment area
34 characters long description:
Creates "People" custom post type.

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
There were no executable files found in this plugin207 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16830207

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.15
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%
Functions20
▷ Named functions20100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
3 compressed PNG files occupy 0.04MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png16.66KB15.76KB▼ 5.38%
screenshot-3.png15.85KB15.06KB▼ 4.97%
screenshot-2.png11.28KB10.57KB▼ 6.23%