Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/advanced-rank-checker/rankchecker.php+445
Trying to access array offset on value of type bool
Server metrics [RAM: ▼2.39MB] [CPU: ▼343.85ms] Passed 4 tests
Analyzing server-side resources used by Advanced Rank Checker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.98 ▼1.54 | 4.92 ▼47.18 |
Dashboard /wp-admin | 2.00 ▼1.41 | 4.44 ▼29.97 |
Posts /wp-admin/edit.php | 2.00 ▼1.65 | 4.38 ▼35.64 |
Add New Post /wp-admin/post-new.php | 2.00 ▼4.98 | 5.11 ▼1,262.62 |
Media Library /wp-admin/upload.php | 2.00 ▼1.30 | 4.50 ▼18.36 |
Add New /wp-admin/post-new.php?post_type=rankchecker | 2.00 | 4.78 |
All keywords /wp-admin/edit.php?post_type=rankchecker | 2.00 | 4.81 |
Rank Checker /wp-admin/admin.php?page=rank_checker | 2.00 | 5.02 |
Rank Checker options /wp-admin/admin.php?page=rankchecker_options | 2.00 | 4.89 |
Server storage [IO: ▲0.49MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Advanced Rank Checker: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,848 ▲126 | 15.62 ▼0.08 | 5.97 ▼0.83 | 2.29 ▲0.25 |
Dashboard /wp-admin | 2,973 ▲112 | 5.99 ▼0.15 | 118.28 ▼27.00 | 172.11 ▲7.12 |
Posts /wp-admin/edit.php | 2,767 ▲73 | 3.25 ▲0.01 | 65.34 ▲0.29 | 157.36 ▲6.04 |
Add New Post /wp-admin/post-new.php | 1,715 ▲54 | 16.21 ▼0.04 | 433.22 ▲13.68 | 156.09 ▲2.82 |
Media Library /wp-admin/upload.php | 1,780 ▲82 | 5.56 ▲0.05 | 135.56 ▼6.96 | 210.55 ▲24.38 |
Add New /wp-admin/post-new.php?post_type=rankchecker | 1,934 | 3.99 | 94.67 | 147.06 |
All keywords /wp-admin/edit.php?post_type=rankchecker | 1,450 | 3.16 | 63.41 | 126.99 |
Rank Checker /wp-admin/admin.php?page=rank_checker | 1,087 | 2.76 | 57.32 | 107.35 |
Rank Checker options /wp-admin/admin.php?page=rankchecker_options | 1,835 | 2.79 | 59.43 | 100.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/advanced-rank-checker/rankchecker.php+445
Trying to access array offset on value of type bool
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 146 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=rankchecker_options
- > Notice in wp-content/plugins/advanced-rank-checker/rankchecker_options.php+94
Trying to access array offset on value of type bool
- 12 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=rankchecker
- > POST request to /wp-admin/admin-ajax.php
- > Notice in wp-content/plugins/advanced-rank-checker/rankchecker.php+31
Undefined index: page
- > GET request to /wp-admin/admin.php?page=rank_checker
- > Notice in wp-content/plugins/advanced-rank-checker/rankchecker.php+303
Undefined index: submit
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
Please fix the following
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-rank-checker/rankchecker.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-rank-checker/rankchecker_dashboard.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/advanced-rank-checker/rankchecker_options.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== advanced-rank-checker ===
)
advanced-rank-checker/rankchecker.php 92% from 13 tests
"Advanced Rank Checker" version 1.3.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-rank-checker.php" instead of "rankchecker.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected4,076 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 519 | 14 | 3,317 |
PHP | 3 | 129 | 67 | 459 |
SVG | 1 | 0 | 0 | 288 |
JavaScript | 2 | 2 | 5 | 12 |
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.25 |
Average class complexity | 17.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/plusteken.png | 24.08KB | 13.93KB | ▼ 42.14% |