94% identity

Code Review | Identity

WordPress plugin Identity scored 94% from 54 tests.

About plugin

  • Plugin page: identity
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.0
  • WordPress version: 5.8.1
  • First release: Sep 10, 2014
  • Latest release: Oct 18, 2014
  • Number of updates: 17
  • Update frequency: every 2.2 days
  • Top authors: Aricura (82.35%)mark.cheret (23.53%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 802 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.24MB] [CPU: ▼137.08ms] 75% from 4 tests

Server-side resources used by Identity
Please have a look at the following items
  • CPU: You should keep total CPU usage under 500.00ms (currently 4,086.48ms on /wp-admin/admin.php?page=mfmmf)
PageMemory (MB)CPU Time (ms)
Home /3.04 ▲0.3237.27 ▲17.97
Dashboard /wp-admin3.34 ▲0.2852.66 ▲7.88
Posts /wp-admin/edit.php3.39 ▲0.2746.79 ▲3.75
Add New Post /wp-admin/post-new.php5.63 ▲0.1993.24 ▼561.67
Media Library /wp-admin/upload.php3.22 ▲0.2135.09 ▲1.74
ManFisher /wp-admin/admin.php?page=mfmmf3.204,086.48
Diagnostics /wp-admin/admin.php?page=mfmmf-diagnostics3.1931.14
Identity /wp-admin/admin.php?page=mfmmf-identity3.1939.28

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 26 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Identity
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,724 ▲12815.92 ▲0.328.13 ▼0.7850.59 ▲3.06
Dashboard /wp-admin3,004 ▲705.93 ▼0.02138.62 ▼0.01141.41 ▲21.72
Posts /wp-admin/edit.php2,798 ▲592.72 ▲0.0062.85 ▼5.5388.87 ▼3.90
Add New Post /wp-admin/post-new.php1,900 ▲37419.21 ▲0.63375.18 ▼8.83108.23 ▲1.68
Media Library /wp-admin/upload.php1,789 ▼185.03 ▲0.00126.06 ▼28.55147.23 ▲27.06
ManFisher /wp-admin/admin.php?page=mfmmf1,1162.0654.1087.45
Diagnostics /wp-admin/admin.php?page=mfmmf-diagnostics1,3052.9962.6387.20
Identity /wp-admin/admin.php?page=mfmmf-identity1,7253.3383.8085.28

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'MCI_Identity_LayoutEngine' not found in wp-content/plugins/identity/class/dashboard/subpage-diagnostics.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'MCI_Identity_LayoutEngine' not found in wp-content/plugins/identity/class/dashboard/subpage-main.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/identity/identity.php:42

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)
There were no browser issues found

Optimizations

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 require attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === identity === )
You can take inspiration from this readme.txt

identity/identity.php Passed 13 tests

The main PHP script in "Identity" version 1.0.4 is automatically included on every request by WordPress
53 characters long description:
define and customize your personal CI on public pages

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
Good job! No executable or dangerous file extensions detected1,027 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP151861,065821
HTML461177
CSS281329

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity9.46
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes17.69%
▷ Concrete classes1292.31%
▷ Final classes00.00%
Methods82
▷ Static methods1214.63%
▷ Public methods4554.88%
▷ Protected methods2328.05%
▷ Private methods1417.07%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
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
img/main-menu.png1.94KB0.77KB▼ 60.25%