Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼308.41ms] Passed 4 tests
An overview of server-side resources used by Posts Per Page Changer UI
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 31.70 ▲10.92 |
Dashboard /wp-admin | 3.09 ▲0.03 | 50.79 ▲8.53 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 37.90 ▼8.27 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 88.84 ▼1,216.37 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 32.39 ▼17.52 |
Posts Per Page Changer UI /wp-admin/options-general.php?page=posts_per_page_changer_ui_setting | 3.00 | 28.99 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Posts Per Page Changer UI
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,681 ▲75 | 15.86 ▼0.04 | 9.61 ▲1.77 | 51.61 ▼1.49 |
Dashboard /wp-admin | 2,932 ▲82 | 5.92 ▲0.10 | 156.45 ▲24.06 | 99.45 ▼8.14 |
Posts /wp-admin/edit.php | 2,708 ▲5 | 2.69 ▲0.01 | 67.07 ▲0.07 | 91.79 ▼8.35 |
Add New Post /wp-admin/post-new.php | 3,710 ▲2,054 | 15.21 ▼2.99 | 446.85 ▲25.99 | 119.94 ▲2.39 |
Media Library /wp-admin/upload.php | 1,777 ▲5 | 4.97 ▼0.02 | 164.02 ▼4.70 | 117.41 ▼7.13 |
Posts Per Page Changer UI /wp-admin/options-general.php?page=posts_per_page_changer_ui_setting | 1,014 | 2.10 | 55.85 | 66.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstall script ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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/posts-per-page-changer-ui/posts-per-page-changer-ui.php:18
- > 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 Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
1 plugin tags: posts_per_page
posts-per-page-changer-ui/posts-per-page-changer-ui.php Passed 13 tests
The main PHP script in "Posts Per Page Changer UI" version 1.0.1 is automatically included on every request by WordPress
55 characters long description:
Add a UI(select) to change posts displayed on the page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected103 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 20 | 24 | 97 |
JavaScript | 1 | 3 | 0 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin