90% ecolet

Code Review | Ecolet

WordPress plugin Ecolet scored90%from 54 tests.

About plugin

  • Plugin page: ecolet
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.2-7.0
  • WordPress version: 6.3.1
  • First release: Jul 23, 2021
  • Latest release: Oct 27, 2022
  • Number of updates: 6
  • Update frequency: every 77.2 days
  • Top authors: ecolet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /2,657 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼2.35ms] Passed 4 tests

A check of server-side resources used by Ecolet
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0336.89 ▼5.50
Dashboard /wp-admin3.33 ▲0.0347.11 ▼0.74
Posts /wp-admin/edit.php3.38 ▲0.0349.72 ▲3.66
Add New Post /wp-admin/post-new.php5.91 ▲0.0387.47 ▼3.68
Media Library /wp-admin/upload.php3.26 ▲0.0334.60 ▲0.53

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Ecolet
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.14 ▼1.611.76 ▲0.0742.93 ▼0.59
Dashboard /wp-admin2,206 ▲145.88 ▲0.84107.34 ▲1.5440.86 ▼1.89
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0238.62 ▲1.4335.54 ▲1.66
Add New Post /wp-admin/post-new.php1,542 ▼018.29 ▲0.14597.01 ▲1.6444.36 ▼14.27
Media Library /wp-admin/upload.php1,388 ▼34.19 ▼0.1293.13 ▼1.6141.58 ▲1.97

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

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

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Contributors: Contributors not specified
You can take inspiration from this readme.txt

ecolet/ecolet.php Passed 13 tests

The main file in "Ecolet" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
35 characters long description:
Ecolet Integration for WooCommerce.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin14,205 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2543114,028
JavaScript1437177

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.51
Average class complexity29.00
▷ Minimum class complexity29.00
▷ Maximum class complexity29.00
Average method complexity3.55
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods1090.91%
▷ Protected methods00.00%
▷ Private methods19.09%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin