10% user-object-framework

Code Review | User Object Framework

WordPress plugin User Object Framework scored 10% from 54 tests.

About plugin

  • Plugin page: user-object-frame...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Oct 1, 2012
  • Latest release: Oct 1, 2012
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: jmdodd (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 2,125 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • This plugin did not install gracefully
    • > Notice in wp-content/plugins/user-object-framework/ucc-uof-loader.php+44
    Accessing static property UCC_User_Object_Framework_Loader::$version as non static

Server metrics [RAM: ▼1.85MB] [CPU: ▼185.27ms] Passed 4 tests

A check of server-side resources used by User Object Framework
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.79 ▼0.946.36 ▼13.18
Dashboard /wp-admin1.81 ▼1.259.26 ▼34.69
Posts /wp-admin/edit.php1.81 ▼1.305.00 ▼39.10
Add New Post /wp-admin/post-new.php1.81 ▼3.634.56 ▼638.48
Media Library /wp-admin/upload.php1.81 ▼1.205.17 ▼28.82

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: 2 new tables, 1 new option
New tables
wp_uof_user_object
wp_uof_user_objectmeta
New WordPress options
_ucc_uof_db_version

Browser metrics Passed 4 tests

Checking browser requirements for User Object Framework
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,703 ▲10715.91 ▼0.148.91 ▼2.5548.28 ▼6.06
Dashboard /wp-admin2,967 ▲365.92 ▼0.03135.97 ▼5.27112.90 ▲1.82
Posts /wp-admin/edit.php2,739 ▼02.72 ▼0.0066.00 ▼3.5887.07 ▼1.30
Add New Post /wp-admin/post-new.php1,500 ▼17018.47 ▼0.72350.49 ▼32.53118.31 ▲10.13
Media Library /wp-admin/upload.php1,807 ▼05.04 ▲0.01149.96 ▼10.00122.51 ▲6.94

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Notice in wp-content/plugins/user-object-framework/ucc-uof-loader.php+44
    Accessing static property UCC_User_Object_Framework_Loader::$version as non static
  • This plugin does not fully uninstall, leaving 2 tables in the database
    • wp_uof_user_objectmeta
    • wp_uof_user_object
  • This plugin did not uninstall successfully, leaving 1 option in the database
    • _ucc_uof_db_version

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Requires at least: Version format is invalid
Please take inspiration from this readme.txt

user-object-framework/ucc-uof-loader.php 85% from 13 tests

The main PHP file in "User Object Framework" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Domain Path: The domain path folder was not found ("/languages/")
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("user-object-framework.php" instead of "ucc-uof-loader.php")

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
No dangerous file extensions were detected391 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP313440391

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.49
Average class complexity26.50
▷ Minimum class complexity7.00
▷ Maximum class complexity46.00
Average method complexity5.64
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions6
▷ Named functions6100.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 are no PNG files in this plugin