Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.12ms] Passed 4 tests
A check of server-side resources used by TW Pagination
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.62 ▼8.27 |
Dashboard /wp-admin | 3.37 ▲0.07 | 46.29 ▼6.20 |
Posts /wp-admin/edit.php | 3.42 ▲0.07 | 52.71 ▼0.39 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 95.56 ▲0.54 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.53 ▼5.63 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
tw_pagination_options |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
TW Pagination: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲9 | 14.13 ▼0.14 | 1.92 ▼0.49 | 42.19 ▼1.06 |
Dashboard /wp-admin | 2,199 ▲22 | 5.65 ▲0.07 | 94.80 ▼2.68 | 43.99 ▲1.58 |
Posts /wp-admin/edit.php | 2,107 ▲4 | 2.01 ▼0.01 | 39.70 ▼0.34 | 37.54 ▲0.31 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.44 ▲0.27 | 711.10 ▼16.33 | 61.92 ▲2.09 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.41 ▲0.25 | 107.63 ▼1.21 | 47.60 ▼3.57 |
TW Pagination /wp-admin/tw-pagination.php | 26 | 0.42 | 0.11 | 14.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- tw_pagination_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
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
Please fix the following items
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/tw-pagination/tw-pagination.php:14
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/tw-pagination.php
- > Network (severe)
wp-admin/tw-pagination.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
There were not plugin tags detected
tw-pagination/tw-pagination.php Passed 13 tests
The main PHP script in "TW Pagination" version 1.1 is automatically included on every request by WordPress
73 characters long description:
A simple and flexible pagination plugin for WordPress posts and comments.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected354 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 46 | 56 | 275 |
CSS | 1 | 22 | 12 | 79 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 47.00 |
▷ Minimum class complexity | 47.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 6.11 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 27.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 9 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 9 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 images were found in this plugin