67% keequotes-graphic-design-online

Code Review | Keequotes U-Print – Graphic Design Online

WordPress plugin Keequotes U-Print – Graphic Design Online scored67%from 54 tests.

About plugin

  • Plugin page: keequotes-graphic...
  • Plugin version: 2.1.7
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.0.3
  • WordPress version: 6.3.1
  • First release: Mar 4, 2021
  • Latest release: Oct 23, 2022
  • Number of updates: 49
  • Update frequency: every 12.2 days
  • Top authors: rhinownam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,076 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▼1.22MB] [CPU: ▼42.79ms] Passed 4 tests

Server-side resources used by Keequotes U-Print – Graphic Design Online
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.75 ▼0.7113.90 ▼29.00
Dashboard /wp-admin2.79 ▼0.5116.17 ▼32.63
Posts /wp-admin/edit.php2.79 ▼0.5616.63 ▼30.13
Add New Post /wp-admin/post-new.php2.79 ▼3.0920.02 ▼79.41
Media Library /wp-admin/upload.php2.79 ▼0.4415.91 ▼15.32
Setting /wp-admin/admin.php?page=setting_plugin2.7915.65

Server storage [IO: ▲18.06MB] [DB: ▲0.00MB] 67% from 3 tests

Filesystem and database footprint
Just a few items left to fix
  • There were 1 file (0.00KB) illegally modified outside of "wp-content/plugins/keequotes-graphic-design-online/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/keequotes-graphic-design-online/assets/banner-772\303\227250.jpg"
Filesystem: 1,910 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Keequotes U-Print – Graphic Design Online
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲6613.24 ▼1.141.77 ▲0.0941.48 ▲1.56
Dashboard /wp-admin2,215 ▲235.84 ▲0.94101.48 ▼5.8339.89 ▼3.29
Posts /wp-admin/edit.php2,101 ▲92.00 ▼0.0239.50 ▲1.0536.40 ▲0.41
Add New Post /wp-admin/post-new.php1,905 ▲36322.07 ▲3.87753.72 ▲122.3433.58 ▼16.63
Media Library /wp-admin/upload.php1,400 ▲94.29 ▲0.1393.78 ▼6.7143.06 ▼1.43
Setting /wp-admin/admin.php?page=setting_plugin8502.0625.7666.05

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function register_block_script_handle was called incorrectly. The asset file (wp-content/plugins/keequotes-graphic-design-online/assets/js/block.asset.php) for the "editorScript" defined in "keequotes-graphic-design-online/my-design-graphic" block definition is missing. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=setting_plugin
    • > User notice in wp-includes/functions.php+5905
    Function register_block_script_handle was called incorrectly. The asset file (wp-content/plugins/keequotes-graphic-design-online/assets/js/block.asset.php) for the "editorScript" defined in "keequotes-graphic-design-online/my-design-graphic" block definition is missing. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)

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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/keequotes-graphic-design-online/tinymce-custom/tinymce-custom-link-class.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/keequotes-graphic-design-online/functions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/keequotes-graphic-design-online/setting.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function do_action() in wp-content/plugins/keequotes-graphic-design-online/templates/template_single_v2.php:73
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/keequotes-graphic-design-online/card-design.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add a description for screenshot #4 in keequotes-graphic-design-online/assets to your readme.txt
  • Screenshots: Screenshot #1 (Template Gallery) image not found
The official readme.txt might help

keequotes-graphic-design-online/card-design.php 85% from 13 tests

The main PHP file in "Keequotes U-Print – Graphic Design Online" ver. 2.1.7 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: Name the main plugin file the same as the plugin slug ("keequotes-graphic-design-online.php" instead of "card-design.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin173,979 lines of code in 1,879 files:
LanguageFilesBlank linesComment linesLines of code
JSON70061,884
JavaScript1036,71913,08746,940
YAML40025,394
SVG1,68701216,464
CSS223,7277310,903
Sass29747816,171
LESS18504554,738
Markdown38850853
PHP53241426
TypeScript1136674206

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.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
5 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/backgrounds/gradient_color.png18.65KB3.83KB▼ 79.44%
assets/images/backgrounds/background_transparent.png2.88KB0.31KB▼ 89.18%
assets/images/icons/close.png0.37KB0.25KB▼ 33.16%
assets/images/backgrounds/solid_color.png1.28KB0.94KB▼ 27.02%
tinymce-custom/design-service.png5.98KB3.42KB▼ 42.83%