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
Install script ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼4.03ms] Passed 4 tests
A check of server-side resources used by User Posts Per Page
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 38.87 ▼2.93 |
Dashboard /wp-admin | 3.35 ▲0.05 | 45.89 ▼2.90 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 48.61 ▲1.71 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 91.23 ▼12.01 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.09 ▲2.91 |
User Posts Per Page Options /wp-admin/options-general.php?page=uppp_site_options | 3.24 | 29.00 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_user_posts_per_page |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for User Posts Per Page
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.20 ▼1.18 | 1.76 ▼0.06 | 43.14 ▼1.23 |
Dashboard /wp-admin | 2,210 ▲22 | 4.85 ▼1.03 | 108.21 ▼5.87 | 41.30 ▼8.26 |
Posts /wp-admin/edit.php | 2,096 ▲10 | 1.97 ▼0.04 | 39.41 ▲2.59 | 36.41 ▲0.75 |
Add New Post /wp-admin/post-new.php | 1,531 ▲11 | 23.31 ▲0.01 | 673.19 ▲1.70 | 53.73 ▼3.23 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.23 ▼0.01 | 96.10 ▼4.65 | 43.36 ▲0.43 |
User Posts Per Page Options /wp-admin/options-general.php?page=uppp_site_options | 782 | 2.03 | 23.92 | 26.92 |
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
The following items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- theysaidso_admin_options
- db_upgraded
- widget_user_posts_per_page
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/user-posts-per-page/user-posts-per-page.php:31
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/user-posts-per-page/lib/class-uppp-widget.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/user-posts-per-page/inc/network-options.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/user-posts-per-page/inc/site-options.php:22
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
user-posts-per-page/user-posts-per-page.php 92% from 13 tests
The primary PHP file in "User Posts Per Page" version 1.0.1 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected221 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 121 | 158 | 216 |
JavaScript | 1 | 4 | 6 | 5 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 9.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.06 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 88.24% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 11.76% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
PNG images were not found in this plugin