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
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼5.32ms] Passed 4 tests
Server-side resources used by Logarithmic Pagination
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 41.61 ▼0.49 |
Dashboard /wp-admin | 3.36 ▲0.02 | 51.28 ▼14.68 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 57.17 ▲6.89 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 93.60 ▼7.75 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 38.51 ▲1.66 |
Log. Pagination /wp-admin/options-general.php?page=wp_lopa | 3.23 | 30.37 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 13 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
lopa_show_css |
lopa_prev_text |
lopa_before_id |
lopa_after_id |
lopa_show_links |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Logarithmic Pagination: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲33 | 13.29 ▼0.92 | 1.67 ▼0.27 | 42.93 ▲1.15 |
Dashboard /wp-admin | 2,225 ▲25 | 4.80 ▼1.05 | 111.28 ▲8.97 | 42.28 ▲0.79 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.04 ▼0.00 | 39.78 ▼0.28 | 34.75 ▼3.12 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.29 ▲5.66 | 601.29 ▼74.83 | 50.63 ▼8.88 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.25 ▲0.04 | 97.09 ▼4.23 | 48.89 ▲3.84 |
Log. Pagination /wp-admin/options-general.php?page=wp_lopa | 1,115 | 2.03 | 26.87 | 29.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=wp_lopa
- > Notice in wp-content/plugins/wp-lopa/inc/settings.php+101
Undefined index: lopa_settings_page
- > GET request to /wp-admin/options-general.php?page=wp_lopa
- > Notice in wp-content/plugins/wp-lopa/inc/settings.php+117
Undefined index: lopa_settings_page_delete
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
Please fix the following items
- 3× PHP files output text when accessed directly:
- > /wp-content/plugins/wp-lopa/wp-lopa.php
- > /wp-content/plugins/wp-lopa/inc/pagination.php
- > /wp-content/plugins/wp-lopa/inc/settings.php
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)
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 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
7 plugin tags: navigation, archives, pages, search, tags...
wp-lopa/wp-lopa.php Passed 13 tests
The primary PHP file in "Logarithmic Pagination" version 0.1.3 is used by WordPress to initiate all plugin functionality
62 characters long description:
Plugin that inserts logarithmic pagination into archive pages.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected694 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 74 | 50 | 397 |
PO File | 2 | 114 | 122 | 297 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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