84% markeaze

Code Review | Markeaze for WooCommerce

WordPress plugin Markeaze for WooCommerce scored84%from 54 tests.

About plugin

  • Plugin page: markeaze
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2.0-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 23, 2020
  • Latest release: Oct 27, 2020
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: markeaze (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /444 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: ▼4.05ms] Passed 4 tests

An overview of server-side resources used by Markeaze for WooCommerce
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.56 ▼2.07
Dashboard /wp-admin3.32 ▼0.0348.17 ▼13.93
Posts /wp-admin/edit.php3.37 ▲0.0154.10 ▲5.93
Add New Post /wp-admin/post-new.php5.90 ▲0.01105.05 ▼2.36
Media Library /wp-admin/upload.php3.24 ▲0.0138.41 ▲2.17

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
markeaze_plgn_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Markeaze for WooCommerce: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,849 ▲7813.55 ▼0.641.72 ▼0.0942.17 ▼1.37
Dashboard /wp-admin2,249 ▲645.84 ▲0.98105.52 ▼1.2075.20 ▲34.94
Posts /wp-admin/edit.php2,138 ▲491.99 ▲0.0138.40 ▼0.1833.54 ▼8.85
Add New Post /wp-admin/post-new.php1,566 ▲3118.31 ▼4.93720.17 ▲52.4470.07 ▲16.86
Media Library /wp-admin/upload.php1,434 ▲434.19 ▲0.02100.80 ▼0.7675.78 ▲26.03

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • markeaze_plgn_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/markeaze/markeaze.php:33
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/markeaze/tmpl/adminform.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
6 plugin tags: widgets, analytics, woocommerce, e-commerce, email campaigns...

markeaze/markeaze.php Passed 13 tests

The primary PHP file in "Markeaze for WooCommerce" version 1.0.1 is used by WordPress to initiate all plugin functionality
109 characters long description:
Markeaze helps you improve the quality of customer service, decrease response time, and increase conversions.

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
No dangerous file extensions were detected830 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP514878541
Markdown2420171
PO File228094
SVG11023
HTML1001

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity32.00
▷ Minimum class complexity1.00
▷ Maximum class complexity84.00
Average method complexity3.58
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods36
▷ Static methods2569.44%
▷ Public methods2466.67%
▷ Protected methods00.00%
▷ Private methods1233.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin