Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.10ms] Passed 4 tests
Server-side resources used by Custom Posts Per Page
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 43.52 ▲0.88 |
Dashboard /wp-admin | 3.41 ▲0.10 | 51.29 ▼2.57 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 52.05 ▼0.75 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 95.38 ▼8.51 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 37.58 ▼0.57 |
Posts Per Page /wp-admin/options-general.php?page=post-count-settings | 3.29 | 29.59 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
cpppc_upgrade |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
cpppc_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Posts Per Page
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.29 ▼1.00 | 4.77 ▲3.10 | 42.57 ▲1.68 |
Dashboard /wp-admin | 2,207 ▲28 | 5.83 ▼0.10 | 97.01 ▼6.43 | 38.43 ▼7.48 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.05 | 38.98 ▼2.85 | 34.44 ▼0.94 |
Add New Post /wp-admin/post-new.php | 1,540 ▲21 | 23.09 ▼0.03 | 613.29 ▼11.16 | 53.38 ▼4.58 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.18 ▼0.07 | 101.16 ▼10.86 | 42.56 ▼5.59 |
Posts Per Page /wp-admin/options-general.php?page=post-count-settings | 941 | 2.18 | 25.04 | 44.65 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/custom-posts-per-page/custom-posts-per-page.php:71
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: posts-per-page, settings, admin, posts, number...
custom-posts-per-page/custom-posts-per-page.php Passed 13 tests
The main PHP file in "Custom Posts Per Page" ver. 1.7.1 adds more information about the plugin and also serves as the entry point for this plugin
78 characters long description:
Shows a custom set number of posts depending on the type of page being viewed.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin281 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 76 | 179 | 281 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 37.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.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 | 22 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
No PNG files were detected