Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.23MB] [CPU: ▼4.58ms] Passed 4 tests
Analyzing server-side resources used by WP-Paginate
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.23 | 40.04 ▲0.02 |
Dashboard /wp-admin | 3.53 ▲0.22 | 45.95 ▼5.26 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 48.04 ▼1.45 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 91.20 ▼11.63 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 33.66 ▲0.13 |
Server storage [IO: ▲1.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 30 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
wp_paginate_options |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP-Paginate
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲41 | 14.69 ▲0.35 | 1.80 ▲0.05 | 41.50 ▲3.59 |
Dashboard /wp-admin | 2,206 ▲25 | 5.62 ▼0.05 | 92.37 ▼14.96 | 39.87 ▼4.45 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 2.00 ▲0.02 | 39.71 ▼4.49 | 35.60 ▲2.45 |
Add New Post /wp-admin/post-new.php | 1,547 ▲21 | 25.42 ▲2.20 | 615.60 ▼67.79 | 64.48 ▲4.58 |
Media Library /wp-admin/upload.php | 1,414 ▲14 | 4.18 ▼0.03 | 96.89 ▼11.11 | 42.12 ▲0.03 |
WP-Paginate /wp-admin/wp-paginate.php | 26 | 0.41 | 0.14 | 13.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- wp_paginate_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
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-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-paginate/wp-paginate.php:50
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
- > GET request to /wp-admin/wp-paginate.php
- > Network (severe)
wp-admin/wp-paginate.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Requires at least: Invalid plugin version format
wp-paginate/wp-paginate.php 92% from 13 tests
"WP-Paginate" version 2.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin9,129 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 893 | 923 | 7,329 |
PHP | 1 | 185 | 99 | 1,004 |
CSS | 4 | 87 | 40 | 533 |
PO File | 1 | 102 | 107 | 263 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 207.00 |
▷ Minimum class complexity | 207.00 |
▷ Maximum class complexity | 207.00 |
Average method complexity | 8.63 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.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 | 27 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 27 | 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 | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
13 PNG files occupy 0.94MB with 0.62MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 48.80KB | 19.18KB | ▼ 60.69% |
images/wppp-buttons.png | 218.01KB | 63.17KB | ▼ 71.03% |
images/MG_logo.png | 10.15KB | 4.42KB | ▼ 56.49% |
images/buy-now-btn.png | 6.51KB | 1.80KB | ▼ 72.37% |
screenshot-2.png | 310.15KB | 92.54KB | ▼ 70.16% |