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
This plugin's installer ran successfully
Server metrics [RAM: ▼1.02MB] [CPU: ▼40.31ms] Passed 4 tests
Analyzing server-side resources used by Popular Post Real Time
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.99 ▼0.51 | 17.28 ▼21.08 |
Dashboard /wp-admin | 3.04 ▼0.34 | 20.44 ▼41.21 |
Posts /wp-admin/edit.php | 3.04 ▼0.35 | 20.48 ▼27.36 |
Add New Post /wp-admin/post-new.php | 3.04 ▼2.88 | 21.26 ▼71.59 |
Media Library /wp-admin/upload.php | 3.04 ▼0.22 | 21.63 ▼14.18 |
Popular Post RT /wp-admin/options-general.php?page=popularpostrealtime_settings | 3.04 | 18.62 |
Server storage [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: no files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
popularpostrealtime_version |
widget_recent-posts |
Browser metrics Passed 4 tests
Popular Post Real Time: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,807 ▲61 | 13.20 ▼1.38 | 1.65 ▲0.00 | 42.50 ▲0.71 |
Dashboard /wp-admin | 2,216 ▲30 | 4.87 ▼0.09 | 110.58 ▼3.71 | 43.56 ▲2.45 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▲0.04 | 38.67 ▲1.44 | 36.87 ▲3.19 |
Add New Post /wp-admin/post-new.php | 1,539 ▲5 | 23.21 ▲0.09 | 676.76 ▲55.48 | 63.71 ▲6.17 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.22 ▼0.06 | 98.07 ▼2.72 | 43.24 ▲1.55 |
Popular Post RT /wp-admin/options-general.php?page=popularpostrealtime_settings | 1,069 | 3.10 | 52.65 | 27.88 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/popular-post-google-analytics-real-time/includes/class-popularpostrealtime-settings.php+120
Undefined variable: status
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- popularpostrealtime_version
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=popularpostrealtime_settings
- > Notice in wp-content/plugins/popular-post-google-analytics-real-time/includes/class-popularpostrealtime-settings.php+120
Undefined variable: status
- > GET request to /wp-admin/options-general.php?page=popularpostrealtime_settings
- > Notice in wp-content/plugins/popular-post-google-analytics-real-time/includes/class-popularpostrealtime-settings.php+151
Undefined index: HOME
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 79% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Plugin Name: You should set the name of your plugin on the first line (
=== popular-post-google-analytics-real-time ===
) - Donate link: Invalid URI found ("vicenteguerra.github.io")
- Screenshots: These screenshots need descriptions #1, #2, #3 in popular-post-google-analytics-real-time/assets to your readme.txt
popular-post-google-analytics-real-time/popularpostrealtime.php 77% from 13 tests
The entry point to "Popular Post Real Time" version 1.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("popular-post-google-analytics-real-time.php" instead of "popularpostrealtime.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Requires at least: Required version does not match the one declared in readme.txt ("3.4" instead of "4.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin1,322 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 436 | 602 | 1,271 |
Markdown | 1 | 33 | 0 | 43 |
JavaScript | 5 | 3 | 0 | 8 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 13.60 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 2.56 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 43.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 1 | 10.00% |
▷ Concrete classes | 9 | 90.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 3 | 3.70% |
▷ Public methods | 77 | 95.06% |
▷ Protected methods | 2 | 2.47% |
▷ Private methods | 2 | 2.47% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 10 | 100.00% |
▷ Public constants | 10 | 100.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