Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼296.07ms] Passed 4 tests
A check of server-side resources used by LBK Size View Count
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.18 | 74.99 ▼2.06 |
Dashboard /wp-admin | 3.44 ▲0.03 | 43.60 ▼6.87 |
Posts /wp-admin/edit.php | 3.66 ▲0.02 | 49.59 ▼18.39 |
Add New Post /wp-admin/post-new.php | 6.90 ▼0.06 | 117.38 ▼1,156.95 |
Media Library /wp-admin/upload.php | 3.31 ▲0.02 | 38.13 ▲5.93 |
LBK Count View /wp-admin/options-general.php?page=lbk-count-view | 3.32 | 33.10 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: 1 new table, no new options
New tables |
---|
wp_countview |
Browser metrics Passed 4 tests
Checking browser requirements for LBK Size View Count
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,814 ▲60 | 15.98 ▲0.86 | 7.44 ▼2.45 | 3.19 ▼0.98 |
Dashboard /wp-admin | 2,909 ▲22 | 6.45 ▲0.03 | 145.36 ▼103.68 | 175.22 ▼164.44 |
Posts /wp-admin/edit.php | 2,693 ▲2 | 3.44 ▲0.02 | 68.88 ▼50.63 | 163.35 ▼172.04 |
Add New Post /wp-admin/post-new.php | 1,638 ▲3 | 19.85 ▲1.06 | 508.72 ▼24.67 | 181.40 ▲4.37 |
Media Library /wp-admin/upload.php | 1,703 ▲8 | 5.71 ▼0.02 | 171.34 ▼1.85 | 221.82 ▼9.78 |
LBK Count View /wp-admin/options-general.php?page=lbk-count-view | 1,043 | 2.56 | 63.68 | 131.97 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- The uninstall procedure failed, leaving 1 table in the database
- wp_countview
Smoke tests 50% 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 0% 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 fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/lbk-count-view/count-view.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/lbk-count-view/includes/admin-options-page.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% 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
2 plugin tags: lbk-cv, size view count
lbk-count-view/count-view.php 77% from 13 tests
Analyzing the main PHP file in "LBK Size View Count" version 1.0.5
You should first fix the following items:
- Domain Path: The domain path is invalid: folder "/languages/" does not exist
- 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
- Main file name: The principal plugin file should be the same as the plugin slug ("lbk-count-view.php" instead of "count-view.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin279 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 44 | 185 | 221 |
Markdown | 1 | 21 | 0 | 46 |
CSS | 2 | 0 | 0 | 12 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 2 | 100.00% |
Methods | 15 | |
▷ Static methods | 6 | 40.00% |
▷ Public methods | 10 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 33.33% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 4 | 80.00% |
▷ Class constants | 1 | 20.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected