83% counter-ecl

Code Review | Counter Ecl

WordPress plugin Counter Ecl scored 83% from 54 tests.

About plugin

  • Plugin page: counter-ecl
  • Plugin version: 1.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.8
  • WordPress version: 5.8.1
  • First release: Sep 23, 2015
  • Latest release: Sep 23, 2016
  • Number of updates: 50
  • Update frequency: every 13.3 days
  • Top authors: enriquecerda (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active / 6,036 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.19MB] [CPU: ▼135.79ms] Passed 4 tests

Server-side resources used by Counter Ecl
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.02 ▲0.1948.01 ▲19.23
Dashboard /wp-admin3.25 ▲0.1949.35 ▲2.01
Posts /wp-admin/edit.php3.33 ▲0.2346.25 ▲10.80
Add New Post /wp-admin/post-new.php5.60 ▲0.1788.25 ▼561.55
Media Library /wp-admin/upload.php3.19 ▲0.1937.16 ▲5.60

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 3 new options
New WordPress options

Browser metrics Passed 4 tests

Checking browser requirements for Counter Ecl
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,843 ▲24716.38 ▲0.7521.15 ▲7.4077.31 ▲31.33
Dashboard /wp-admin2,982 ▲485.95 ▼0.06142.80 ▼7.04129.07 ▲22.69
Posts /wp-admin/edit.php2,759 ▲202.63 ▼0.0868.58 ▲3.8688.03 ▲1.93
Add New Post /wp-admin/post-new.php1,617 ▼5318.59 ▼0.69411.33 ▲14.55112.30 ▲9.20
Media Library /wp-admin/upload.php1,838 ▲285.01 ▼0.03145.71 ▼10.89145.83 ▲33.75

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 3 options
    • widget_counterecl
    • counter_ecl
    • counter_ecl_time

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/counter-ecl/contador.php:187

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test


Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: These screenshots do not have images: #1 (The widget in WordPress 4.3), #2 (The Menu Counter ECL.), #3 (Message Cookie Law.)
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
Please take inspiration from this readme.txt

counter-ecl/contador.php 92% from 13 tests

The main file in "Counter Ecl" v. 1.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("counter-ecl.php" instead of "contador.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin2,077 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PO File3237237574

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity49.00
▷ Minimum class complexity49.00
▷ Maximum class complexity49.00
Average method complexity13.00
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions21100.00%
▷ Anonymous functions00.00%
▷ 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
4 PNG files occupy 0.46MB with 0.42MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png156.79KB20.73KB▼ 86.78%
screenshot-2.png106.65KB11.42KB▼ 89.29%
screenshot-3.png157.86KB20.84KB▼ 86.80%
images/menu-icon.png53.97KB1.19KB▼ 97.79%