74% designo

Code Review | DesignO

WordPress plugin DesignO scored74%from 54 tests.

About plugin

  • Plugin page: designo
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Mar 26, 2022
  • Latest release: Sep 26, 2023
  • Number of updates: 39
  • Update frequency: every 14.1 days
  • Top authors: designnbuy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /2,632 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by DesignO
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.36 ▲0.52
Dashboard /wp-admin3.31 ▲0.0049.37 ▼3.98
Posts /wp-admin/edit.php3.36 ▲0.0051.86 ▲5.74
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.89 ▼21.99
Media Library /wp-admin/upload.php3.23 ▲0.0039.81 ▲1.25

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 17 new files
Database: 1 new table, 6 new options
New tables
wp_designo_tbl
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for DesignO
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.75 ▲0.011.93 ▼0.0942.28 ▼4.10
Dashboard /wp-admin2,198 ▲215.65 ▼0.0490.90 ▼6.6940.52 ▼1.70
Posts /wp-admin/edit.php2,100 ▲32.01 ▲0.0236.45 ▼3.0834.58 ▼1.03
Add New Post /wp-admin/post-new.php1,545 ▲1423.42 ▲0.33656.83 ▼4.3753.93 ▼8.87
Media Library /wp-admin/upload.php1,403 ▲34.24 ▲0.0198.16 ▲1.5341.05 ▲0.10

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie tables detected upon uninstall: 1 table
    • wp_designo_tbl
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
  • 5× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_url() in wp-content/plugins/designo/design-tool.php:2
    • > PHP Notice
      Undefined variable: _SESSION in wp-content/plugins/designo/upload-tool.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_url() in wp-content/plugins/designo/upload-tool.php:5
    • > PHP Notice
      Trying to access array offset on value of type null in wp-content/plugins/designo/upload-tool.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/designo/class.designo-rest-api.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #0, #0, #0, #0 in designo/assets to your readme.txt
You can look at the official readme.txt

designo/designo.php 92% from 13 tests

The principal PHP file in "DesignO" v. 1.0.7 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 401 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin2,108 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP42711561,866
CSS256142
JavaScript22114100

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions68
▷ Named functions4667.65%
▷ Anonymous functions2232.35%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
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
assets/images/uploaded_artwork.png3.97KB1.84KB▼ 53.81%