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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.09 | 46.22 ▲7.63 |
Dashboard /wp-admin | 3.39 ▲0.05 | 50.61 ▼15.52 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 52.41 ▼1.19 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 94.08 ▼19.58 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.35 ▼0.17 | 1.61 ▲0.07 | 43.75 ▲5.64 |
Dashboard /wp-admin | 2,195 ▲18 | 5.61 ▲0.03 | 91.69 ▼0.18 | 40.54 ▼2.85 |
Posts /wp-admin/edit.php | 2,097 ▼0 | 2.02 ▼0.00 | 39.72 ▼0.90 | 36.44 ▼5.05 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 22.96 ▼0.62 | 674.96 ▲52.36 | 54.85 ▼5.91 |
Media Library /wp-admin/upload.php | 1,394 ▼9 | 4.18 ▼0.10 | 96.32 ▼10.37 | 45.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 190 | 475 | 722 |
JavaScript | 1 | 5 | 2 | 34 |
JSON | 1 | 0 | 0 | 5 |
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 code | 0.46 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 18 | 32.73% |
▷ Public methods | 50 | 90.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 9.09% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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