Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▼303.68ms] Passed 4 tests
Analyzing server-side resources used by A-Z Listing
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.21 ▲0.70 | 74.72 ▲2.46 |
Dashboard /wp-admin | 4.11 ▲0.70 | 45.39 ▲3.32 |
Posts /wp-admin/edit.php | 4.34 ▲0.69 | 47.41 ▼2.36 |
Add New Post /wp-admin/post-new.php | 7.58 ▲0.61 | 108.08 ▼1,218.13 |
Media Library /wp-admin/upload.php | 4.00 ▲0.70 | 37.61 ▲5.95 |
Server storage [IO: ▲2.16MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 103 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_a_z_listing_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for A-Z Listing
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,870 ▲122 | 15.86 ▲0.42 | 7.38 ▼1.72 | 3.61 ▲0.08 |
Dashboard /wp-admin | 2,958 ▲39 | 6.39 ▲0.01 | 183.70 ▼33.97 | 215.84 ▼4.38 |
Posts /wp-admin/edit.php | 2,725 ▲7 | 3.43 ▲0.01 | 90.55 ▲7.23 | 182.36 ▼9.31 |
Add New Post /wp-admin/post-new.php | 1,765 ▲70 | 17.60 ▼2.16 | 671.53 ▲3.32 | 212.21 ▼9.57 |
Media Library /wp-admin/upload.php | 1,747 ▲17 | 5.80 ▲0.16 | 172.67 ▼23.57 | 247.95 ▲6.71 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_a_z_listing_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 6× 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/a-z-listing/wp-api/api.php:90
- > PHP Fatal error
Uncaught Error: Call to a member function the_instance_id() on null in wp-content/plugins/a-z-listing/templates/a-z-listing.php:23
- > PHP Fatal error
Uncaught Error: Class 'Isolated\\Symfony\\Component\\Finder\\Finder' not found in wp-content/plugins/a-z-listing/scoper.inc.php:17
- > PHP Notice
Undefined variable: a_z_query in wp-content/plugins/a-z-listing/templates/a-z-listing.example.php on line 15
- > PHP Fatal error
Uncaught Error: Call to a member function the_instance_id() on null in wp-content/plugins/a-z-listing/templates/a-z-listing.example.php:15
- > PHP Notice
Undefined variable: a_z_query in wp-content/plugins/a-z-listing/templates/a-z-listing.php on line 23
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: listing, widget, archive, a to z, a-z...
a-z-listing/a-z-listing.php Passed 13 tests
The main PHP script in "A-Z Listing" version 4.2.1 is automatically included on every request by WordPress
34 characters long description:
Display an A to Z listing of posts
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 detected51,010 lines of code in 94 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 6 | 2 | 0 | 42,729 |
PHP | 67 | 964 | 3,007 | 7,122 |
JavaScript | 13 | 84 | 161 | 854 |
CSS | 5 | 6 | 14 | 198 |
Sass | 3 | 5 | 2 | 107 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 12.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 6 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 43 | |
▷ Abstract classes | 5 | 11.63% |
▷ Concrete classes | 38 | 88.37% |
▷ Final classes | 1 | 2.63% |
Methods | 212 | |
▷ Static methods | 70 | 33.02% |
▷ Public methods | 200 | 94.34% |
▷ Protected methods | 5 | 2.36% |
▷ Private methods | 7 | 3.30% |
Functions | 124 | |
▷ Named functions | 101 | 81.45% |
▷ Anonymous functions | 23 | 18.55% |
Constants | 8 | |
▷ Global constants | 7 | 87.50% |
▷ Class constants | 1 | 12.50% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected