Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲1.83MB] [CPU: ▲7.42ms] 75% from 4 tests
Server-side resources used by Index Now
Please have a look at the following items
- CPU: Total CPU usage must kept under 500.00ms (currently 683.55ms on /wp-admin/admin.php?page=mihdan-index-now)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.33 ▲1.87 | 48.07 ▲5.07 |
Dashboard /wp-admin | 5.13 ▲1.83 | 57.86 ▼1.24 |
Posts /wp-admin/edit.php | 5.19 ▲1.83 | 59.01 ▲13.06 |
Add New Post /wp-admin/post-new.php | 7.71 ▲1.83 | 94.47 ▲12.80 |
Media Library /wp-admin/upload.php | 5.06 ▲1.83 | 51.56 ▲17.62 |
IndexNow /wp-admin/admin.php?page=mihdan-index-now | 5.33 | 683.55 |
Log /wp-admin/admin.php?page=mihdan-index-now-log | 5.01 | 48.01 |
Server storage [IO: ▲4.35MB] [DB: ▲0.04MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 723 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_index_now_log |
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Index Now
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲74 | 14.72 ▲0.58 | 1.65 ▼0.24 | 37.96 ▼5.79 |
Dashboard /wp-admin | 2,241 ▲73 | 5.78 ▲0.11 | 97.95 ▼3.65 | 44.05 ▼2.03 |
Posts /wp-admin/edit.php | 2,170 ▲67 | 2.50 ▲0.36 | 43.69 ▲0.71 | 34.99 ▼2.28 |
Add New Post /wp-admin/post-new.php | 1,571 ▲45 | 23.22 ▼0.02 | 685.15 ▲81.53 | 35.79 ▼11.23 |
Media Library /wp-admin/upload.php | 1,458 ▲58 | 4.48 ▲0.33 | 97.59 ▼0.33 | 41.29 ▼1.42 |
IndexNow /wp-admin/admin.php?page=mihdan-index-now | 4,370 | 2.42 | 42.27 | 87.31 |
Log /wp-admin/admin.php?page=mihdan-index-now-log | 1,102 | 2.17 | 31.76 | 25.60 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 360× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Mihdan\\IndexNow\\Dependencies\\phpseclib3\\Crypt\\Common\\Formats\\Keys\\PKCS1' not found in wp-content/plugins/mihdan-index-now/vendor-prefixed/phpseclib/phpseclib/phpseclib/Crypt/DSA/Formats/Keys/PKCS1.php:43
- > PHP Fatal error
Uncaught Error: Class 'Mihdan\\IndexNow\\Dependencies\\phpseclib3\\Crypt\\Common\\BlockCipher' not found in wp-content/plugins/mihdan-index-now/vendor-prefixed/phpseclib/phpseclib/phpseclib/Crypt/Blowfish.php:48
- > PHP Fatal error
Uncaught Error: Class 'Mihdan\\IndexNow\\Dependencies\\phpseclib3\\Crypt\\EC\\BaseCurves\\Prime' not found in wp-content/plugins/mihdan-index-now/vendor-prefixed/phpseclib/phpseclib/phpseclib/Crypt/EC/Curves/brainpoolP224r1.php:19
- > PHP Fatal error
Uncaught Error: Class 'Mihdan\\IndexNow\\Dependencies\\Psr\\Log\\AbstractLogger' not found in wp-content/plugins/mihdan-index-now/src/Logger/Logger.php:7
- > PHP Fatal error
Uncaught Error: Class 'Mihdan\\IndexNow\\Dependencies\\Auryn\\InjectorException' not found in wp-content/plugins/mihdan-index-now/vendor-prefixed/rdlowrey/auryn/lib/InjectionException.php:5
- > PHP Fatal error
Uncaught Error: Class 'Mihdan\\IndexNow\\Dependencies\\Monolog\\Handler\\AbstractHandler' not found in wp-content/plugins/mihdan-index-now/vendor-prefixed/monolog/monolog/src/Monolog/Handler/GroupHandler.php:20
- > PHP Warning
require_once(lib/byte_safe_strings.php): failed to open stream: No such file or directory in wp-content/plugins/mihdan-index-now/vendor-prefixed/paragonie/random_compat/psalm-autoload.php on line 5
- > PHP Fatal error
Uncaught Error: Class 'Mihdan\\IndexNow\\Dependencies\\phpseclib3\\Crypt\\DSA' not found in wp-content/plugins/mihdan-index-now/vendor-prefixed/phpseclib/phpseclib/phpseclib/Crypt/DSA/PrivateKey.php:26
- > PHP Fatal error
Uncaught Error: Class 'Mihdan\\IndexNow\\Dependencies\\phpseclib3\\Math\\BigInteger\\Engines\\PHP\\Base' not found in wp-content/plugins/mihdan-index-now/vendor-prefixed/phpseclib/phpseclib/phpseclib/Math/BigInteger/Engines/PHP/Reductions/Barrett.php:25
- > PHP Fatal error
Uncaught Error: Interface 'Mihdan\\IndexNow\\Dependencies\\Monolog\\Formatter\\FormatterInterface' not found in wp-content/plugins/mihdan-index-now/vendor-prefixed/monolog/monolog/src/Monolog/Formatter/FluentdFormatter.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: Add descriptions for screenshots #1, #2, #3, #4, #5, #6 in mihdan-index-now/assets to your readme.txt
mihdan-index-now/mihdan-index-now.php Passed 13 tests
The main file in "Index Now" v. 2.6.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
137 characters long description:
IndexNow is a small WordPress Plugin for quickly notifying search engines whenever their website content is created, updated, or deleted.
Code Analysis 97% from 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 plugin55,690 lines of code in 700 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 689 | 2,300 | 41,171 | 54,103 |
JSON | 2 | 0 | 0 | 1,384 |
SVG | 2 | 0 | 0 | 78 |
XML | 3 | 0 | 0 | 67 |
YAML | 2 | 5 | 0 | 45 |
Dockerfile | 1 | 8 | 0 | 10 |
Bourne Shell | 1 | 2 | 0 | 3 |
PHP code 50% from 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
It is recommended to fix the following
- Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 13.28 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 661.00 |
Average method complexity | 3.41 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 179.00 |
Code structure | ||
---|---|---|
Namespaces | 91 | |
Interfaces | 41 | |
Traits | 12 | |
Classes | 619 | |
▷ Abstract classes | 215 | 34.73% |
▷ Concrete classes | 404 | 65.27% |
▷ Final classes | 39 | 9.65% |
Methods | 3,459 | |
▷ Static methods | 700 | 20.24% |
▷ Public methods | 2,535 | 73.29% |
▷ Protected methods | 386 | 11.16% |
▷ Private methods | 538 | 15.55% |
Functions | 224 | |
▷ Named functions | 73 | 32.59% |
▷ Anonymous functions | 151 | 67.41% |
Constants | 680 | |
▷ Global constants | 94 | 13.82% |
▷ Class constants | 586 | 86.18% |
▷ Public constants | 577 | 98.46% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin