Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.02MB] [CPU: ▼292.29ms] Passed 4 tests
An overview of server-side resources used by RY Custom Pagination
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.01 | 55.99 ▲5.06 |
Dashboard /wp-admin | 3.41 ▲0.01 | 31.80 ▼0.97 |
Posts /wp-admin/edit.php | 3.65 ▲0.01 | 35.88 ▼2.40 |
Add New Post /wp-admin/post-new.php | 6.88 ▼0.09 | 88.48 ▼1,156.83 |
Media Library /wp-admin/upload.php | 3.30 ▲0.00 | 23.96 ▼8.94 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for RY Custom Pagination
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,763 ▲5 | 15.92 ▲0.23 | 5.43 ▼1.32 | 2.42 ▼0.19 |
Dashboard /wp-admin | 2,895 ▲41 | 6.18 ▼0.12 | 115.64 ▼19.50 | 156.96 ▼6.60 |
Posts /wp-admin/edit.php | 2,691 ▼3 | 3.23 ▲0.00 | 67.86 ▲5.83 | 149.06 ▲6.77 |
Add New Post /wp-admin/post-new.php | 1,661 ▼5 | 16.03 ▼5.91 | 416.45 ▼17.17 | 150.34 ▼7.25 |
Media Library /wp-admin/upload.php | 1,698 ▲4 | 5.51 ▲0.06 | 146.70 ▼109.34 | 188.51 ▼6.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables
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
Even though no errors were found, this is by no means 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
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/ry-custom-pagination/class.ry-cp.admin.php
- > /wp-content/plugins/ry-custom-pagination/class.ry-cp.php
- > /wp-content/plugins/ry-custom-pagination/class.ry-cp.update.php
- > /wp-content/plugins/ry-custom-pagination/ry-custom-pagination.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)
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: post, post pagination, link
ry-custom-pagination/ry-custom-pagination.php Passed 13 tests
The main PHP script in "RY Custom Pagination" version 1.0.4 is automatically included on every request by WordPress
17 characters long description:
Custom Pagination
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected310 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 37 | 10 | 310 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.55 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 5.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 8 | 100.00% |
▷ Public methods | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin