84% people-page

Code Review | People Page

WordPress plugin People Page scored 84% from 54 tests.

About plugin

  • Plugin page: people-page
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9.2
  • WordPress version: 6.3.1
  • First release: Mar 11, 2013
  • Latest release: Aug 8, 2014
  • Number of updates: 6
  • Update frequency: every 86.3 days
  • Top authors: jethin (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

30+ active / 4,369 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.01MB] [CPU: ▼5.24ms] Passed 4 tests

A check of server-side resources used by People Page
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.32 ▼5.10
Dashboard /wp-admin3.31 ▲0.0146.68 ▼1.49
Posts /wp-admin/edit.php3.36 ▲0.0149.49 ▼0.36
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.49 ▼14.02
Media Library /wp-admin/upload.php3.24 ▲0.0135.79 ▲0.92

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

People Page: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.47 ▼1.294.36 ▲1.7044.07 ▲5.30
Dashboard /wp-admin2,209 ▲214.87 ▼0.22107.56 ▼2.8838.05 ▼8.07
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0039.24 ▼1.9636.26 ▼2.30
Add New Post /wp-admin/post-new.php1,542 ▼018.17 ▼0.06598.62 ▼7.6955.92 ▼11.27
Media Library /wp-admin/upload.php1,391 ▼04.26 ▼0.03102.04 ▲4.8344.15 ▼3.33

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded

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
Everything seems fine, however 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 items
  • 6× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/people-page/theme-templates/twentythirteen/people-page.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/people-page/people-page.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_userdata() in wp-content/plugins/people-page/theme-templates/twentythirteen/author-bio.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/people-page/theme-templates/twentythirteen/author.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/people-page/theme-templates/twentytwelve/author.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/people-page/theme-templates/twentytwelve/people-page.php:2

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: bios, staff, authors, photos, users

people-page/people-page.php 92% from 13 tests

"People Page" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 185 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin496 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP68966347
CSS484876
JavaScript219773

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions11
▷ Named functions11100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
bg-drag-users.png1.53KB0.43KB▼ 71.85%