Benchmarks
Plugin footprint 40% 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
The following installer errors require your attention
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wp-alphabetic-navigation/wpalphabeticnavigation.php+119
Undefined index: letter
Server metrics [RAM: ▼1.92MB] [CPU: ▼57.37ms] Passed 4 tests
This is a short check of server-side resources used by WP Alphabetic Navigation
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 6.21 ▼38.91 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.73 ▼43.84 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.50 ▼46.25 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 6.72 ▼100.47 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 5.75 ▼33.50 |
WP Alphabetic Navigation /wp-admin/options-general.php?page=wp-alphabetic-navigation/wpalphabeticnavigation.php | 2.09 | 7.02 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
WP Alphabetic Navigation: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲78 | 14.74 ▲0.45 | 1.78 ▲0.02 | 43.79 ▼4.69 |
Dashboard /wp-admin | 2,213 ▲25 | 4.84 ▼1.04 | 107.97 ▼9.08 | 41.62 ▼0.41 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.00 ▼0.13 | 34.33 ▼5.81 | 37.62 ▲1.24 |
Add New Post /wp-admin/post-new.php | 1,377 ▼142 | 16.72 ▼6.48 | 574.38 ▼159.86 | 45.70 ▼20.04 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.16 ▲0.01 | 92.61 ▼17.01 | 44.94 ▼1.39 |
WP Alphabetic Navigation /wp-admin/options-general.php?page=wp-alphabetic-navigation/wpalphabeticnavigation.php | 839 | 2.05 | 24.19 | 21.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-alphabetic-navigation/wpalphabeticnavigation.php+119
Undefined index: letter
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
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
- > GET request to /wp-admin/options-general.php?page=wp-alphabetic-navigation/wpalphabeticnavigation.php
- > Notice in wp-content/plugins/wp-alphabetic-navigation/wpalphabeticnavigation.php+119
Undefined index: letter
- > GET request to /wp-admin/options-general.php?page=wp-alphabetic-navigation/wpalphabeticnavigation.php
- > Notice in wp-content/plugins/wp-alphabetic-navigation/wpalphabeticnavigation.php+43
Undefined index: alpha_lang
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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-alphabetic-navigation/wpalphabeticnavigation.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: navigation, pages, letters, alphabetic, paging...
wp-alphabetic-navigation/wpalphabeticnavigation.php 92% from 13 tests
The entry point to "WP Alphabetic Navigation" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-alphabetic-navigation.php" instead of "wpalphabeticnavigation.php")
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
There were no executable files found in this plugin106 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 19 | 22 | 106 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected