90% woo-edit-templates

Code Review | Edit WooCommerce Templates

WordPress plugin Edit WooCommerce Templates scored 90% from 54 tests.

About plugin

  • Plugin page: woo-edit-templates
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0
  • WordPress version: 6.3.1
  • First release: Apr 16, 2017
  • Latest release: Jul 14, 2022
  • Number of updates: 37
  • Update frequency: every 51.9 days
  • Top authors: ivanup (67.57%)ioannup (35.14%)

Code review

54 tests

User reviews

28 reviews

Install metrics

2,000+ active / 28,247 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: ▲0.08MB] [CPU: ▼5.00ms] Passed 4 tests

A check of server-side resources used by Edit WooCommerce Templates
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0934.56 ▼6.39
Dashboard /wp-admin3.38 ▲0.0844.82 ▼3.94
Posts /wp-admin/edit.php3.50 ▲0.1446.83 ▲1.65
Add New Post /wp-admin/post-new.php5.98 ▲0.0986.92 ▼9.00
Media Library /wp-admin/upload.php3.30 ▲0.0834.03 ▼0.66

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Edit WooCommerce Templates
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲8714.75 ▲0.111.78 ▼0.0540.60 ▼0.57
Dashboard /wp-admin2,228 ▲404.89 ▼0.01108.98 ▲2.5244.63 ▲5.78
Posts /wp-admin/edit.php2,111 ▲222.05 ▲0.0040.82 ▲3.6943.24 ▲8.20
Add New Post /wp-admin/post-new.php1,531 ▼217.68 ▼5.50658.97 ▼100.1056.33 ▲5.46
Media Library /wp-admin/upload.php1,413 ▲314.21 ▲0.0198.25 ▲3.5344.13 ▼0.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 97% 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 your attention:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

woo-edit-templates/woo-edit-templates.php Passed 13 tests

The main PHP script in "Edit WooCommerce Templates" version 1.1.1 is automatically included on every request by WordPress
76 characters long description:
The plugin helps you edit WooCommerce templates files for your Current Theme

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected597 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP3177310565
JavaScript10032

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity42.00
▷ Minimum class complexity25.00
▷ Maximum class complexity59.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods42
▷ Static methods1330.95%
▷ Public methods3685.71%
▷ Protected methods12.38%
▷ Private methods511.90%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
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
PNG images were not found in this plugin