74% page-view-count-by-webline

Code Review | Page View Count by Webline

WordPress plugin Page View Count by Webline scored74%from 54 tests.

About plugin

  • Plugin page: page-view-count-b...
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-6.1
  • WordPress version: 6.3.1
  • First release: Nov 15, 2014
  • Latest release: Feb 1, 2023
  • Number of updates: 16
  • Update frequency: every 187.6 days
  • Top authors: WeblineIndia (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /9,827 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▲0.14ms] Passed 4 tests

This is a short check of server-side resources used by Page View Count by Webline
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0240.67 ▼0.22
Dashboard /wp-admin3.40 ▲0.0951.13 ▼0.30
Posts /wp-admin/edit.php3.51 ▲0.1552.79 ▼0.34
Add New Post /wp-admin/post-new.php6.00 ▲0.1192.70 ▲3.63
Media Library /wp-admin/upload.php3.32 ▲0.0939.75 ▲1.42

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 18 new files
Database: 1 new table, 7 new options
New tables
wp_pageview_history
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
page_view_option
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Page View Count by Webline
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.21 ▼0.141.83 ▲0.2045.04 ▲6.23
Dashboard /wp-admin2,214 ▲405.62 ▲0.0390.46 ▼11.3042.02 ▼1.47
Posts /wp-admin/edit.php2,119 ▲161.98 ▼0.0036.04 ▼2.9835.25 ▲2.60
Add New Post /wp-admin/post-new.php1,542 ▲1023.41 ▲0.07672.18 ▲14.7760.16 ▲1.47
Media Library /wp-admin/upload.php1,422 ▲224.22 ▼0.0596.63 ▼10.4847.80 ▲1.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_pageview_history
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • page_view_option
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-view-count-by-webline/admin/class/menu.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/page-view-count-by-webline/class/hook.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/page-view-count-by-webline/view-count-by-webline.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/page-view-count-by-webline/class/show-view.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-view-count-by-webline/admin/class/assets.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/page-view-count-by-webline/admin/class/page-view.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
10 plugin tags: view counter by user, page view count by user, page view count, post view counter, post count...

page-view-count-by-webline/view-count-by-webline.php 85% from 13 tests

The main PHP file in "Page View Count by Webline" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Description: Please don't use more than 140 characters for the plugin description (currently 199 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("page-view-count-by-webline.php" instead of "view-count-by-webline.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin1,724 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript213974697
PHP823121533
CSS34950494

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity11.33
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.55
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods1640.00%
▷ Protected methods00.00%
▷ Private methods2460.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 compressed PNG files occupy 0.01MB
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/css/images/ui-bg_inset-hard_100_fcfdfd_1x100.png0.09KB0.09KB0.00%
admin/assets/css/images/ui-icons_469bdd_256x240.png4.28KB4.13KB▼ 3.54%
admin/assets/css/images/ui-icons_d8e7f3_256x240.png4.28KB4.13KB▼ 3.54%
admin/assets/css/images/ui-bg_gloss-wave_55_5c9ccc_500x100.png3.38KB1.68KB▼ 50.10%