Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼3.02ms] Passed 4 tests
Analyzing server-side resources used by Countera
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.17 | 39.76 ▼0.52 |
Dashboard /wp-admin | 3.47 ▲0.17 | 48.39 ▲1.35 |
Posts /wp-admin/edit.php | 3.58 ▲0.23 | 45.54 ▲0.14 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 81.92 ▼11.55 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 37.29 ▼0.15 |
Count Post Views /wp-admin/users.php?page=countera-count-post-views | 3.46 | 31.25 |
Server storage [IO: ▲0.99MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 50 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_countera_post_view_count |
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Countera: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲33 | 14.75 ▲0.51 | 1.87 ▼0.04 | 43.64 ▲4.14 |
Dashboard /wp-admin | 2,213 ▲27 | 5.04 ▲0.11 | 100.13 ▼6.07 | 39.16 ▼2.88 |
Posts /wp-admin/edit.php | 2,090 ▼2 | 1.98 ▼0.08 | 38.29 ▼2.61 | 35.48 ▲2.39 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.15 ▼0.10 | 669.01 ▼9.13 | 53.21 ▼6.41 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.23 ▼0.06 | 96.71 ▼2.57 | 42.78 ▼3.44 |
Count Post Views /wp-admin/users.php?page=countera-count-post-views | 1,533 | 3.39 | 65.97 | 61.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- The uninstall procedure failed, leaving 1 table in the database
- wp_countera_post_view_count
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 50% 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 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/countera/inc/frontend/views/default.php
- 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/countera/inc/admin/views/tables/listing.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/countera/inc/admin/views/layouts/default.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/countera/inc/admin/views/forms/listing.php:4
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/countera/inc/admin/views/listing.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post_types() in wp-content/plugins/countera/inc/admin/views/forms/filter.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Screenshots: Screenshot #1 (The listing table for backend.) image required
countera/countera.php Passed 13 tests
The entry point to "Countera" version 1.0.0 is a PHP file that has certain tags in its header comment area
39 characters long description:
Count any post views per user per date.
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 detected10,332 lines of code in 35 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 1,217 | 13 | 9,213 |
PHP | 17 | 197 | 445 | 656 |
JavaScript | 11 | 28 | 64 | 463 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 6.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 40.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 3 | 7.14% |
▷ Public methods | 26 | 61.90% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 38.10% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 9 | |
▷ Global constants | 8 | 88.89% |
▷ Class constants | 1 | 11.11% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin