83% page-visits-counter-lite

Code Review | Page Visits Counter - Lite

WordPress plugin Page Visits Counter - Lite scored 83% from 54 tests.

About plugin

  • Plugin page: page-visits-count...
  • Plugin version: 1.1.7
  • PHP compatiblity: 5.6.40+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.2-6.2
  • WordPress version: 6.3.1
  • First release: Mar 22, 2021
  • Latest release: Apr 10, 2023
  • Number of updates: 73
  • Update frequency: every 10.5 days
  • Top authors: strongetic (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

4,000+ active / 15,518 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.31MB] [CPU: ▼0.99ms] Passed 4 tests

An overview of server-side resources used by Page Visits Counter - Lite
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.75 ▲0.2937.19 ▼5.03
Dashboard /wp-admin3.66 ▲0.3547.61 ▼3.96
Posts /wp-admin/edit.php3.70 ▲0.3549.14 ▲4.95
Add New Post /wp-admin/post-new.php6.19 ▲0.3198.20 ▲3.83
Media Library /wp-admin/upload.php3.51 ▲0.2936.13 ▲1.21
Page Visits Counter Lite /wp-admin/options-general.php?page=strongetic-page-visits-counter-lite3.5435.89

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
strcpv_delete_plugin_data
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Page Visits Counter - Lite
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,446 ▲71113.86 ▼0.769.68 ▲7.9033.38 ▼10.96
Dashboard /wp-admin2,736 ▲5485.98 ▲0.07105.59 ▼9.0753.71 ▲8.39
Posts /wp-admin/edit.php2,093 ▲42.00 ▲0.0339.49 ▲6.5437.55 ▲4.25
Add New Post /wp-admin/post-new.php1,517 ▼1117.72 ▼5.54625.80 ▼48.5951.07 ▼1.92
Media Library /wp-admin/upload.php1,392 ▲44.21 ▲0.0196.95 ▼10.8742.60 ▼2.97
Page Visits Counter Lite /wp-admin/options-general.php?page=strongetic-page-visits-counter-lite2,2642.1227.7127.42

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'StrCPVisits_Inc\\Base\\BaseController' not found in wp-content/plugins/page-visits-counter-lite/Inc/Counter/frontend/CounterBase.php:13

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
  • Screenshots: A description for screenshot #0 is required in page-visits-counter-lite/assets to your readme.txt
The official readme.txt might help

page-visits-counter-lite/strongetic-page-visits-counter-lite.php 85% from 13 tests

This is the main PHP file of "Page Visits Counter - Lite" version 1.1.7, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("page-visits-counter-lite.php" instead of "strongetic-page-visits-counter-lite.php")
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.0" instead of "4.9.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin5,232 lines of code in 44 files:
LanguageFilesBlank linesComment linesLines of code
PHP401,0769292,096
JavaScript35501,0031,997
CSS1184851,139

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity7.05
▷ Minimum class complexity1.00
▷ Maximum class complexity20.00
Average method complexity2.86
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes20
▷ Abstract classes00.00%
▷ Concrete classes20100.00%
▷ Final classes15.00%
Methods65
▷ Static methods812.31%
▷ Public methods6498.46%
▷ Protected methods00.00%
▷ Private methods11.54%
Functions4
▷ Named functions4100.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