Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼290.62ms] Passed 4 tests
Analyzing server-side resources used by A-2-Z Alphabetical Archive Links
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.24 | 93.10 ▲19.44 |
Dashboard /wp-admin | 3.62 ▲0.21 | 36.31 ▲2.65 |
Posts /wp-admin/edit.php | 3.84 ▲0.20 | 41.22 ▲4.35 |
Add New Post /wp-admin/post-new.php | 7.14 ▲0.17 | 97.58 ▼1,172.09 |
Media Library /wp-admin/upload.php | 3.56 ▲0.26 | 27.95 ▲2.60 |
A2Z Alphabetical Archive Links /wp-admin/options-general.php?page=a2zaal-options | 3.47 | 25.42 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for A-2-Z Alphabetical Archive Links
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,768 ▲24 | 15.92 ▲0.75 | 7.49 ▲1.51 | 2.59 ▼0.05 |
Dashboard /wp-admin | 2,890 ▲36 | 6.16 ▼0.03 | 132.34 ▼4.42 | 190.22 ▼57.73 |
Posts /wp-admin/edit.php | 2,696 ▲39 | 3.23 ▼0.00 | 65.69 ▲0.54 | 146.95 ▲2.12 |
Add New Post /wp-admin/post-new.php | 1,776 ▲16 | 21.25 ▼1.31 | 489.39 ▲25.20 | 245.84 ▲84.69 |
Media Library /wp-admin/upload.php | 1,696 ▼5 | 5.55 ▲0.03 | 176.17 ▲38.30 | 201.06 ▲22.06 |
A2Z Alphabetical Archive Links /wp-admin/options-general.php?page=a2zaal-options | 992 | 2.42 | 53.71 | 103.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Async_Request' not found in wp-content/plugins/a2z-alphabetical-archive-links/src/vender/wp-background-processing/classes/wp-background-process.php:16
- > PHP Fatal error
Uncaught Error: Class 'WP_Background_Process' not found in wp-content/plugins/a2z-alphabetical-archive-links/src/classes/A2ZAAL_Post_Type_Background_Process.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/a2z-alphabetical-archive-links/src/views/settings_form.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/a2z-alphabetical-archive-links/src/plugin.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/a2z-alphabetical-archive-links/src/vender/wp-background-processing/wp-background-processing.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/a2z-alphabetical-archive-links/src/settings.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/a2z-alphabetical-archive-links/src/widgets/a2zaal_widget.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/a2z-alphabetical-archive-links/src/rewrites.php:14
- > 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 90% from 29 tests
readme.txt 94% from 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
Attributes that need to be fixed:
- Screenshots: Add descriptions for screenshots #2, #3 in a2z-alphabetical-archive-links/assets to your readme.txt
a2z-alphabetical-archive-links/a2z-alphabetical-archive-links.php 85% from 13 tests
The main PHP file in "A-2-Z Alphabetical Archive Links" ver. 2.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Description: Keep the plugin description shorter than 140 characters (currently 172 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected1,107 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 356 | 795 | 869 |
Markdown | 1 | 54 | 0 | 104 |
JavaScript | 1 | 22 | 25 | 86 |
CSS | 1 | 2 | 81 | 30 |
JSON | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 2.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 2 | 50.00% |
▷ Concrete classes | 2 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 23 | 53.49% |
▷ Protected methods | 20 | 46.51% |
▷ Private methods | 0 | 0.00% |
Functions | 39 | |
▷ Named functions | 39 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 12 | |
▷ Global constants | 12 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected