Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▲2.98ms] Passed 4 tests
Server-side resources used by Alphabetic Pagination
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.65 ▲0.19 | 42.17 ▲0.35 |
Dashboard /wp-admin | 3.36 ▲0.06 | 52.50 ▲3.42 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 51.99 ▲3.19 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 100.66 ▲4.95 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 41.60 ▲6.13 |
Alphabetic Pagination /wp-admin/options-general.php?page=alphabetic_pagination | 3.63 | 46.51 |
Server storage [IO: ▲3.99MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 47 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
alphabetic_pagination_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Alphabetic Pagination: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,924 ▲162 | 13.38 ▼0.69 | 8.85 ▲7.12 | 37.69 ▼7.82 |
Dashboard /wp-admin | 2,207 ▲30 | 5.61 ▼0.02 | 94.69 ▼6.08 | 40.81 ▼4.37 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 2.04 ▲0.07 | 40.74 ▲1.36 | 36.02 ▲4.03 |
Add New Post /wp-admin/post-new.php | 1,540 ▲4 | 23.18 ▼0.16 | 666.66 ▲15.83 | 57.61 ▲8.19 |
Media Library /wp-admin/upload.php | 1,409 ▲15 | 4.16 ▼0.12 | 96.32 ▼3.64 | 43.17 ▼1.26 |
Alphabetic Pagination /wp-admin/options-general.php?page=alphabetic_pagination | 3,699 | 16.10 | 533.68 | 62.34 |
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
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- alphabetic_pagination_options
- 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/alphabetic-pagination/inc/logger.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: chameleon, posts pagination, sorting, alphabetic, pagination...
alphabetic-pagination/index.php 85% from 13 tests
"Alphabetic Pagination" version 3.1.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("alphabetic-pagination.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 148 characters long)
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
Everything looks great! No dangerous files found in this plugin13,750 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,445 |
PHP | 6 | 1,116 | 212 | 2,229 |
CSS | 7 | 230 | 20 | 978 |
PO File | 3 | 225 | 234 | 552 |
JavaScript | 5 | 131 | 122 | 546 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
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 | 62 | |
▷ Named functions | 61 | 98.39% |
▷ Anonymous functions | 1 | 1.61% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
7 PNG files occupy 0.65MB with 0.22MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/googplay.png | 12.88KB | 6.13KB | ▼ 52.38% |
images/pagi-item-selected-bg.png | 1.34KB | 0.85KB | ▼ 36.75% |
images/reset-light.png | 0.52KB | 0.54KB | 0.00% |
images/ap-banner.png | 635.08KB | 227.96KB | ▼ 64.11% |
images/reset-dark.png | 0.65KB | 0.54KB | ▼ 17.94% |