84% frontend-stats-for-clicky

Code Review | Clicky Frontend Stats

WordPress plugin Clicky Frontend Stats scored84%from 54 tests.

About plugin

  • Plugin page: frontend-stats-fo...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.9.1
  • WordPress version: 6.3.1
  • First release: Feb 1, 2018
  • Latest release: Feb 1, 2018
  • Number of updates: 2
  • Update frequency: every 10.0 days
  • Top authors: Benimation (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /559 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.00ms] Passed 4 tests

This is a short check of server-side resources used by Clicky Frontend Stats
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.40 ▼0.0625.18 ▼15.53
Dashboard /wp-admin3.32 ▲0.0243.97 ▼7.63
Posts /wp-admin/edit.php3.37 ▲0.0248.19 ▲2.11
Add New Post /wp-admin/post-new.php5.90 ▲0.0291.80 ▲0.63
Media Library /wp-admin/upload.php3.24 ▲0.0133.24 ▼1.47

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

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

Browser metrics Passed 4 tests

Clicky Frontend Stats: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,465 ▼30613.60 ▼1.153.17 ▲1.1918.82 ▼23.71
Dashboard /wp-admin2,206 ▲214.85 ▼1.0595.59 ▼21.3539.70 ▼5.81
Posts /wp-admin/edit.php2,086 ▼32.12 ▲0.0739.85 ▼0.2836.81 ▲1.14
Add New Post /wp-admin/post-new.php1,514 ▼517.75 ▼5.35688.54 ▲51.6866.91 ▲7.54
Media Library /wp-admin/upload.php1,388 ▼04.27 ▲0.1095.76 ▲0.1142.42 ▼0.58

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/frontend-stats-for-clicky/clicky-frontend-stats.php:94

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
6 plugin tags: stats, analytics, clicky, frontend, public...

frontend-stats-for-clicky/clicky-frontend-stats.php 85% from 13 tests

"Clicky Frontend Stats" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("frontend-stats-for-clicky.php" instead of "clicky-frontend-stats.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin73 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1421962
CSS16111

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.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
There are no PNG files in this plugin