84% wp-personality

Code Review | WP-Personality

WordPress plugin WP-Personality scored84%from 54 tests.

About plugin

  • Plugin page: wp-personality
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.5.1
  • WordPress version: 6.3.1
  • First release: Jun 15, 2013
  • Latest release: Jun 15, 2013
  • Number of updates: 8
  • Update frequency: every 4.9 days
  • Top authors: blakepeterman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /707 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.17MB] [CPU: ▼16.31ms] Passed 4 tests

Analyzing server-side resources used by WP-Personality
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.46 ▼5.25
Dashboard /wp-admin3.20 ▼0.1030.97 ▼21.82
Posts /wp-admin/edit.php3.27 ▼0.0936.38 ▼20.01
Add New Post /wp-admin/post-new.php5.44 ▼0.4583.27 ▼18.15
Media Library /wp-admin/upload.php3.21 ▼0.0233.58 ▼2.67

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for WP-Personality
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲5913.20 ▼1.411.69 ▲0.0245.95 ▲4.91
Dashboard /wp-admin2,211 ▲295.85 ▲0.00120.50 ▼8.3846.86 ▲1.38
Posts /wp-admin/edit.php2,096 ▲42.01 ▲0.0443.15 ▼3.3939.73 ▲0.07
Add New Post /wp-admin/post-new.php1,542 ▲2323.27 ▲0.07668.02 ▲44.3874.43 ▲16.94
Media Library /wp-admin/upload.php1,390 ▲24.19 ▼0.06128.72 ▲20.9549.80 ▲3.87

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-personality/personality.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

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
Attributes that require attention:
  • Screenshots: Add images for these screenshots: #1 (http://blakepeterman.com/wp-content/uploads/2013/05/Screen-Shot-2013-05-06-at-12.44.05-PM.png), #2 (http://blakepeterman.com/wp-content/uploads/2013/05/Screen-Shot-2013-05-06-at-12.44.49-PM.png)
The official readme.txt might help

wp-personality/personality.php 92% from 13 tests

The principal PHP file in "WP-Personality" v. 1.1 is loaded by WordPress automatically on each request
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 ("wp-personality.php" instead of "personality.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin29 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP16929

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions3
▷ Named functions3100.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
There were not PNG files found in your plugin