Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.69ms] Passed 4 tests
A check of server-side resources used by myCred for WP-PostViews
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.97 ▲1.97 |
Dashboard /wp-admin | 3.35 ▲0.00 | 45.45 ▼18.94 |
Posts /wp-admin/edit.php | 3.46 ▲0.10 | 47.85 ▼4.95 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 92.75 ▼12.82 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 37.02 ▲3.64 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
myCred for WP-PostViews: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲68 | 14.14 ▼0.57 | 1.79 ▲0.25 | 44.19 ▲4.12 |
Dashboard /wp-admin | 2,195 ▲20 | 5.63 ▼0.08 | 89.45 ▼14.36 | 40.39 ▲2.87 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.94 ▼0.02 | 38.52 ▼1.42 | 35.19 ▼5.86 |
Add New Post /wp-admin/post-new.php | 1,535 ▲8 | 25.25 ▲2.25 | 613.25 ▼46.27 | 61.22 ▲10.78 |
Media Library /wp-admin/upload.php | 1,397 ▼6 | 4.18 ▼0.02 | 98.21 ▼7.39 | 41.22 ▼1.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 take a closer look at the following
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mycred-for-wp-postviews/mycred-wp-postviews.php:90
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 90% 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: mycred, hits, wp postviews, counter, points
mycred-for-wp-postviews/mycred-wp-postviews.php 77% from 13 tests
"myCred for WP-PostViews" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Text Domain: The text domain should only use lowercase characters and dashes
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("mycred-for-wp-postviews.php" instead of "mycred-wp-postviews.php")
- Requires at least: Please use periods and digits for the required version (ex. "7.0" instead of "WP 4.8")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin222 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 61 | 116 | 175 |
PO File | 1 | 12 | 12 | 47 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 18 | |
▷ Static methods | 1 | 5.56% |
▷ Public methods | 16 | 88.89% |
▷ Protected methods | 1 | 5.56% |
▷ Private methods | 1 | 5.56% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 files were detected