94% u-design-1150

Code Review | U-Design-1150

WordPress plugin U-Design-1150 scored 94% from 54 tests.

About plugin

  • Plugin page: u-design-1150
  • Plugin version: 1.02
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.8
  • WordPress version: 5.8.1
  • First release: Sep 22, 2013
  • Latest release: Dec 12, 2018
  • Number of updates: 22
  • Update frequency: every 86.7 days
  • Top authors: Radices (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,193 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼142.47ms] Passed 4 tests

An overview of server-side resources used by U-Design-1150
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1236.67 ▲13.72
Dashboard /wp-admin3.06 ▲0.0150.83 ▲4.23
Posts /wp-admin/edit.php3.11 ▲0.0147.94 ▼1.24
Add New Post /wp-admin/post-new.php5.42 ▼0.0192.28 ▼571.80
Media Library /wp-admin/upload.php3.01 ▲0.0036.89 ▼1.08

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by U-Design-1150
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,681 ▲8515.85 ▲0.347.12 ▼4.8752.83 ▼1.81
Dashboard /wp-admin2,970 ▲365.90 ▼0.02139.34 ▼13.33114.67 ▼14.22
Posts /wp-admin/edit.php2,739 ▼02.68 ▼0.0170.43 ▲2.9194.47 ▼1.71
Add New Post /wp-admin/post-new.php1,498 ▼218.90 ▼0.02378.94 ▼12.58115.36 ▲4.68
Media Library /wp-admin/upload.php1,807 ▼05.01 ▼0.02153.15 ▲2.74122.50 ▼0.05

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables

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
Even though no errors were found, this is by no means an exhaustive test

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
The following issues need your attention
  • 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/u-design-1150/u_design_1150.php:37

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

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:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === u-design-1150 === )
You can look at the official readme.txt

u-design-1150/u_design_1150.php 92% from 13 tests

The main file in "U-Design-1150" v. 1.02 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("u-design-1150.php" instead of "u_design_1150.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
Good job! No executable or dangerous file extensions detected11 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1142610
CSS1001

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.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin