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
Installer ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼5.31ms] Passed 4 tests
Analyzing server-side resources used by Posts in Page
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 39.27 ▼3.08 |
Dashboard /wp-admin | 3.36 ▲0.06 | 44.75 ▼5.00 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 46.24 ▼3.41 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.06 | 89.08 ▼9.75 |
Media Library /wp-admin/upload.php | 3.28 ▲0.06 | 34.47 ▲2.48 |
Posts in Page /wp-admin/options-general.php?page=posts_in_page | 3.29 | 30.20 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Posts in Page
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.63 ▼0.75 | 1.79 ▼0.19 | 41.74 ▼3.26 |
Dashboard /wp-admin | 2,207 ▲19 | 4.83 ▼1.09 | 101.71 ▼13.53 | 39.05 ▼9.00 |
Posts /wp-admin/edit.php | 2,093 ▲25 | 2.05 ▲0.00 | 40.47 ▲3.40 | 36.60 ▲2.65 |
Add New Post /wp-admin/post-new.php | 1,545 ▲10 | 18.32 ▼4.68 | 608.34 ▼40.27 | 53.28 ▼16.46 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.16 ▼0.11 | 92.61 ▼10.44 | 41.11 ▼6.62 |
Posts in Page /wp-admin/options-general.php?page=posts_in_page | 1,396 | 2.19 | 28.41 | 43.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/posts-in-page/templates/posts_loop_template.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/posts-in-page/admin/views/help-main.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/posts-in-page/includes/class-page-posts.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/posts-in-page/posts_in_page.php:23
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 93% from 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
6 plugin tags: shortcode, terms, custom post types, taxonomy, posts...
posts-in-page/posts_in_page.php 85% from 13 tests
The main PHP script in "Posts in Page" version 1.4.4 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("posts-in-page.php" instead of "posts_in_page.php")
- Description: The description should be shorter than 140 characters (currently 151 characters long)
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
Everything looks great! No dangerous files found in this plugin840 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 118 | 177 | 661 |
CSS | 1 | 31 | 17 | 169 |
JavaScript | 1 | 0 | 0 | 10 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 27.50 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 53.00 |
Average method complexity | 4.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 35.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 68.75% |
▷ Protected methods | 5 | 31.25% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.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
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/ivycat-sq.png | 4.79KB | 2.78KB | ▼ 41.95% |