Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▲0.96ms] Passed 4 tests
A check of server-side resources used by rng-postviews
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.24 ▼2.23 |
Dashboard /wp-admin | 3.35 ▲0.05 | 46.63 ▼4.80 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 50.47 ▲6.35 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 97.43 ▲10.04 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 36.80 ▲4.52 |
postviews /wp-admin/options-general.php?page=ja_postviews-settings | 3.27 | 33.59 |
Server storage [IO: ▲0.21MB] [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: 22 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-comments |
widget_ja_papular_posts |
ja_configration_dissmiss |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for rng-postviews
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲167 | 14.63 ▲0.26 | 4.48 ▲2.90 | 42.92 ▼7.10 |
Dashboard /wp-admin | 2,311 ▲123 | 6.48 ▲1.57 | 147.84 ▲31.60 | 44.26 ▼3.99 |
Posts /wp-admin/edit.php | 2,112 ▲26 | 1.98 ▼0.00 | 40.17 ▲4.98 | 36.32 ▲3.15 |
Add New Post /wp-admin/post-new.php | 1,546 ▲13 | 23.38 ▲0.08 | 576.47 ▼45.87 | 53.12 ▲2.15 |
Media Library /wp-admin/upload.php | 1,398 ▲13 | 4.21 ▲0.03 | 99.50 ▼1.40 | 43.69 ▼0.61 |
postviews /wp-admin/options-general.php?page=ja_postviews-settings | 813 | 2.03 | 25.02 | 29.18 |
Uninstaller [IO: ▲0.00MB] [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 has failed, leaving 7 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- widget_ja_papular_posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/rng-postviews/includes/translate.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/rng-postviews/includes/class.controller.cron.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/rng-postviews/rng-postviews.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: rng, post viewed, postviews, view-post
rng-postviews/rng-postviews.php 92% from 13 tests
"rng-postviews" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 157 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected1,045 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 97 | 256 | 743 |
PO File | 1 | 37 | 37 | 101 |
JavaScript | 2 | 0 | 19 | 89 |
CSS | 2 | 7 | 1 | 72 |
Markdown | 1 | 12 | 0 | 40 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.53 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 55 | |
▷ Static methods | 3 | 5.45% |
▷ Public methods | 53 | 96.36% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 3.64% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 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
No PNG files were detected