73% woocommerce-molds

Code Review | Woocommerce Molds

WordPress plugin Woocommerce Molds scored73%from 54 tests.

About plugin

  • Plugin page: woocommerce-molds
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.2.2
  • WordPress version: 6.3.1
  • First release: Oct 20, 2013
  • Latest release: Jul 11, 2015
  • Number of updates: 21
  • Update frequency: every 30.0 days
  • Top authors: melinadonati (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,057 total downloads

Benchmarks

Plugin footprint 65% 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.03MB] [CPU: ▼6.53ms] Passed 4 tests

This is a short check of server-side resources used by Woocommerce Molds
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.63 ▼5.19
Dashboard /wp-admin3.38 ▲0.0851.23 ▼6.58
Posts /wp-admin/edit.php3.43 ▲0.0752.34 ▼1.83
Add New Post /wp-admin/post-new.php5.90 ▲0.0195.95 ▼12.53
Media Library /wp-admin/upload.php3.24 ▲0.0143.27 ▲7.10

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

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

Browser metrics Passed 4 tests

Woocommerce Molds: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.47 ▲0.102.06 ▲0.2644.21 ▲2.70
Dashboard /wp-admin2,206 ▲185.86 ▲1.00108.80 ▼8.5838.57 ▼6.91
Posts /wp-admin/edit.php2,092 ▲32.06 ▲0.0836.05 ▼3.1733.07 ▼4.57
Add New Post /wp-admin/post-new.php1,533 ▲1423.34 ▼0.15648.54 ▼26.2454.15 ▼6.22
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0896.36 ▼19.5542.02 ▼9.00

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 15 files (0.16MB) in the plugin directory
    • (new file) assets/images/notapplied.png
    • (new file) css/admin.css
    • (new file) assets/images/minus.png
    • (new file) assets/images/applied.png
    • (new file) js/admin.js
    • (new file) languages/woocommerce-molds-fr_FR.mo
    • (new file) assets/images/edit.png
    • (new file) assets/images/plus.png
    • (new file) assets/images/molds.png
    • (new file) assets/images/remove.png
    • ...
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

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
The smoke test was a success, however most plugin functionality was not tested

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/woocommerce-molds/woocommerce-molds.php:30

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)
No browser issues were found

Optimizations

Plugin configuration 90% 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:
  • Plugin Name: You should set the name of your plugin on the first line ( === woocommerce-molds === )
You can look at the official readme.txt

woocommerce-molds/woocommerce-molds.php 85% from 13 tests

"Woocommerce Molds" version 0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 462 characters long)
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin2,627 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP32904231,966
PO File1102144286
CSS1280232
JavaScript1183143

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity94.00
▷ Minimum class complexity94.00
▷ Maximum class complexity94.00
Average method complexity2.07
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods87
▷ Static methods00.00%
▷ Public methods8193.10%
▷ Protected methods66.90%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/molds.png4.79KB2.54KB▼ 46.96%
assets/images/notapplied.png0.47KB0.28KB▼ 40.96%
assets/images/plus.png0.78KB0.53KB▼ 32.58%
assets/images/minus.png0.71KB0.48KB▼ 31.68%
assets/images/edit.png0.52KB0.22KB▼ 58.85%