77% coderlift-product-page-booster

Code Review | Coderlift Product Page Booster

WordPress plugin Coderlift Product Page Booster scored77%from 54 tests.

About plugin

  • Plugin page: coderlift-product...
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Jan 15, 2020
  • Latest release: Jan 15, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: coderlift (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /351 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▼8.03MB] [CPU: ▼1,763,145.72ms] Passed 4 tests

A check of server-side resources used by Coderlift Product Page Booster
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.84 ▼33.9145.96 ▼7,052,580.32
Dashboard /wp-admin3.96 ▲0.6156.40 ▲1.72
Posts /wp-admin/edit.php3.98 ▲0.5854.47 ▼1.86
Add New Post /wp-admin/post-new.php6.55 ▲0.6299.12 ▼2.40
Media Library /wp-admin/upload.php3.88 ▲0.6144.14 ▲8.93

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 341 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Coderlift Product Page Booster
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4414.67 ▲0.031.74 ▲0.1343.97 ▲4.34
Dashboard /wp-admin2,206 ▲265.57 ▼0.0793.78 ▲2.8944.58 ▲1.78
Posts /wp-admin/edit.php2,117 ▲142.05 ▲0.0735.40 ▼0.7734.35 ▼0.47
Add New Post /wp-admin/post-new.php1,536 ▲1022.69 ▼0.97674.50 ▼33.2046.24 ▼13.36
Media Library /wp-admin/upload.php1,414 ▲114.29 ▲0.11110.39 ▲3.3547.93 ▼0.57

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/coderlift-product-page-booster/wc-product-page-booster.php
  • 41× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/coderlift-product-page-booster/cmb2/includes/types/CMB2_Type_Text_Datetime_Timestamp.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/coderlift-product-page-booster/cmb2/includes/types/CMB2_Type_Taxonomy_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/coderlift-product-page-booster/cmb2/includes/types/CMB2_Type_Oembed.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coderlift-product-page-booster/cmb2/example-functions.php:105
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/coderlift-product-page-booster/cmb2/includes/helper-functions.php:131
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Select' not found in wp-content/plugins/coderlift-product-page-booster/cmb2/includes/types/CMB2_Type_Select_Timezone.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/coderlift-product-page-booster/cmb2/includes/types/CMB2_Type_File_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/coderlift-product-page-booster/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Multicheck' not found in wp-content/plugins/coderlift-product-page-booster/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck_Hierarchical.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/coderlift-product-page-booster/cmb2/includes/CMB2_hookup.php:14

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 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (The backend view. Extra text editor added after activating the plugin), #2 (The front end view. Extra added data will be showen just after the cart button)
Please take inspiration from this readme.txt

coderlift-product-page-booster/wc-product-page-booster.php 77% from 13 tests

The main file in "Coderlift Product Page Booster" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("coderlift-product-page-booster.php" instead of "wc-product-page-booster.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Domain Path: The domain path folder does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin45,942 lines of code in 199 files:
LanguageFilesBlank linesComment linesLines of code
PO File12014,31518,50232,323
PHP582,0856,0686,960
CSS131,1641,1484,651
JavaScript63274991,376
Markdown22140632

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity18.56
▷ Minimum class complexity1.00
▷ Maximum class complexity183.00
Average method complexity3.25
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes66
▷ Abstract classes812.12%
▷ Concrete classes5887.88%
▷ Final classes00.00%
Methods519
▷ Static methods8616.57%
▷ Public methods42882.47%
▷ Protected methods8816.96%
▷ Private methods30.58%
Functions40
▷ Named functions40100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants333.33%
▷ Class constants666.67%
▷ Public constants6100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
cmb2/images/ui-bg_highlight-soft_75_cccccc_1x100.png0.10KB0.17KB0.00%
cmb2/images/ico-delete.png0.70KB0.72KB0.00%
cmb2/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
cmb2/images/ui-bg_glass_75_dadada_1x400.png0.11KB0.16KB0.00%