84% bubuku-post-view-count

Code Review | Bubuku post view count

WordPress plugin Bubuku post view count scored84%from 54 tests.

About plugin

  • Plugin page: bubuku-post-view-...
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.2
  • WordPress version: 6.3.1
  • First release: May 29, 2022
  • Latest release: Apr 23, 2023
  • Number of updates: 5
  • Update frequency: every 66.0 days
  • Top authors: lruizcode (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /654 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 gracefully, with no errors

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

A check of server-side resources used by Bubuku post view count
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0946.22 ▲7.63
Dashboard /wp-admin3.39 ▲0.0550.61 ▼15.52
Posts /wp-admin/edit.php3.50 ▲0.1552.41 ▼1.19
Add New Post /wp-admin/post-new.php5.98 ▲0.0994.08 ▼19.58
Media Library /wp-admin/upload.php3.31 ▲0.0839.24 ▲4.25

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Bubuku post view count
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.171.61 ▲0.0743.75 ▲5.64
Dashboard /wp-admin2,195 ▲185.61 ▲0.0391.69 ▼0.1840.54 ▼2.85
Posts /wp-admin/edit.php2,097 ▼02.02 ▼0.0039.72 ▼0.9036.44 ▼5.05
Add New Post /wp-admin/post-new.php1,528 ▲222.96 ▼0.62674.96 ▲52.3654.85 ▼5.91
Media Library /wp-admin/upload.php1,394 ▼94.18 ▼0.1096.32 ▼10.3745.12 ▲0.94

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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
  • 10× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/bubuku-post-view-count/src/PCV_plugin.php
    • > /wp-content/plugins/bubuku-post-view-count/bubuku-post-view-count.php
    • > /wp-content/plugins/bubuku-post-view-count/index.php
    • > /wp-content/plugins/bubuku-post-view-count/src/PCV_restapi.php
    • > /wp-content/plugins/bubuku-post-view-count/uninstall.php
    • > /wp-content/plugins/bubuku-post-view-count/src/PCV_db.php
    • > /wp-content/plugins/bubuku-post-view-count/vendor/composer/index.php
    • > /wp-content/plugins/bubuku-post-view-count/src/index.php
    • > /wp-content/plugins/bubuku-post-view-count/src/PCV_assets.php
    • > /wp-content/plugins/bubuku-post-view-count/vendor/index.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: post count, page view count, post views, post view count, posts

bubuku-post-view-count/bubuku-post-view-count.php 92% from 13 tests

Analyzing the main PHP file in "Bubuku post view count" version 1.0.3
Please make the necessary changes and fix the following:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected761 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP17190475722
JavaScript15234
JSON1005

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity13.25
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces3
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods55
▷ Static methods1832.73%
▷ Public methods5090.91%
▷ Protected methods00.00%
▷ Private methods59.09%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin