84% ecommerce-extra

Code Review | Ceylon Extra

WordPress plugin Ceylon Extra scored84%from 54 tests.

About plugin

  • Plugin page: ecommerce-extra
  • Plugin version: 0.0.6
  • PHP compatiblity: 5.5+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7
  • WordPress version: 6.3.1
  • First release: Jan 27, 2021
  • Latest release: Jun 22, 2021
  • Number of updates: 8
  • Update frequency: every 18.5 days
  • Top authors: ceylonthemes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

2,000+ active /37,998 total downloads

Benchmarks

Plugin footprint 83% from 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: ▼6.98ms] Passed 4 tests

A check of server-side resources used by Ceylon Extra
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.39 ▼1.78
Dashboard /wp-admin3.31 ▼0.0342.89 ▼17.34
Posts /wp-admin/edit.php3.37 ▲0.0147.89 ▼0.77
Add New Post /wp-admin/post-new.php5.90 ▲0.0185.25 ▼8.01
Media Library /wp-admin/upload.php3.24 ▲0.0137.07 ▲4.55

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Ceylon Extra
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8114.48 ▲0.171.78 ▲0.1639.42 ▲0.14
Dashboard /wp-admin2,206 ▲184.83 ▼1.06100.14 ▼0.8236.66 ▼10.65
Posts /wp-admin/edit.php2,089 ▲32.06 ▲0.0737.51 ▲2.1533.79 ▲0.82
Add New Post /wp-admin/post-new.php1,538 ▲2423.38 ▲5.77655.73 ▲29.1652.00 ▲1.95
Media Library /wp-admin/upload.php1,388 ▼04.19 ▼0.0392.45 ▼7.2143.97 ▲1.76

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please fix the following
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Notice
      Undefined variable: wp_customize in wp-content/plugins/ecommerce-extra/inc/customizer/common.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/ecommerce-extra/inc/customizer-repeater/inc/icons.php:11
    • > PHP Fatal error
      require(): Failed opening required 'ecommerce_extra_dir_pathinc/customizer-repeater/inc/customizer.php' (include_path='.:/usr/share/php') in wp-content/plugins/ecommerce-extra/inc/customizer-repeater/functions.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ecommerce-extra/inc/customizer-repeater/inc/customizer.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ecommerce-extra/inc/customizer.php:2
    • > PHP Fatal error
      Uncaught Error: Call to a member function add_section() on null in wp-content/plugins/ecommerce-extra/inc/customizer/common.php:4
    • > PHP Warning
      require(ecommerce_extra_dir_pathinc/customizer-repeater/inc/customizer.php): failed to open stream: No such file or directory in wp-content/plugins/ecommerce-extra/inc/customizer-repeater/functions.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/ecommerce-extra/ecommerce-extra.php:12
    • > PHP Warning
      Use of undefined constant ecommerce_extra_dir_path - assumed 'ecommerce_extra_dir_path' (this will throw an Error in a future version of PHP) in wp-content/plugins/ecommerce-extra/inc/customizer-repeater/functions.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ecommerce-extra/inc/actions.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: responsive, e-commerce, page builder, customize, widgets...

ecommerce-extra/ecommerce-extra.php Passed 13 tests

"Ceylon Extra" version 0.0.6's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
91 characters long description:
Enhances eCommerce Plus theme with additional functionality such as customizer and widgets.

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
Everything looks great! No dangerous files found in this plugin8,018 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
SVG2002,959
CSS553252,632
PHP8229661,974
JavaScript28639374
Markdown127079

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity97.00
▷ Minimum class complexity97.00
▷ Maximum class complexity97.00
Average method complexity11.67
▷ Minimum method complexity1.00
▷ Maximum method complexity48.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods333.33%
▷ Protected methods00.00%
▷ Private methods666.67%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
Constants3
▷ Global constants3100.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
1 PNG file occupies 0.03MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/empty.png27.33KB0.10KB▼ 99.64%