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.54MB] [CPU: ▼15.29ms] Passed 4 tests
This is a short check of server-side resources used by WP Post Visits Wizard
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.14 | 46.56 ▲3.57 |
Dashboard /wp-admin | 3.44 ▲0.14 | 49.66 ▲2.04 |
Posts /wp-admin/edit.php | 3.56 ▲0.20 | 49.28 ▼1.30 |
Add New Post /wp-admin/post-new.php | 3.32 ▼2.56 | 40.46 ▼63.47 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 39.88 ▲1.59 |
WP Post Visits Wizard /wp-admin/options-general.php?page=post-visits-wizard-admin | 3.34 | 36.28 |
Server storage [IO: ▲0.71MB] [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: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP Post Visits Wizard
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.41 ▼0.25 | 1.76 ▼0.10 | 43.80 ▼0.39 |
Dashboard /wp-admin | 2,213 ▲58 | 4.89 ▼0.77 | 106.50 ▲6.85 | 40.41 ▼4.05 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.02 ▼0.04 | 37.87 ▼3.29 | 32.92 ▼6.03 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.31 ▲0.14 | 654.20 ▼8.89 | 57.45 ▲8.22 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.21 ▼0.06 | 98.94 ▼4.71 | 43.18 ▼1.80 |
WP Post Visits Wizard /wp-admin/options-general.php?page=post-visits-wizard-admin | 950 | 2.50 | 41.77 | 68.29 |
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
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-post-visits-wizard/wp-post-visits-wizard.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-post-visits-wizard/src/templates/main-settings.php:63
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=post-visits-wizard-admin
- > Javascript (severe) in unknown
/wp-content/plugins/wp-post-visits-wizard//src/assets/font-awesome-4.7.0.min.css?ver=6.3.1 3:3 Uncaught SyntaxError: Invalid or unexpected token
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: sorting, visits, order, counter, posts
wp-post-visits-wizard/wp-post-visits-wizard.php Passed 13 tests
The primary PHP file in "WP Post Visits Wizard" version 1.0.1 is used by WordPress to initiate all plugin functionality
85 characters long description:
Light plugin to manage visits count for any post and order them as well while listing
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected10,129 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 1,150 | 1,498 | 9,373 |
PHP | 12 | 188 | 311 | 725 |
Markdown | 1 | 13 | 0 | 15 |
JSON | 2 | 0 | 0 | 14 |
CSS | 2 | 0 | 9 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 18.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 57 | |
▷ Static methods | 5 | 8.77% |
▷ Public methods | 44 | 77.19% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 13 | 22.81% |
Functions | 11 | |
▷ Named functions | 1 | 9.09% |
▷ Anonymous functions | 10 | 90.91% |
Constants | 8 | |
▷ Global constants | 2 | 25.00% |
▷ Class constants | 6 | 75.00% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin