Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/include-post-page/include_post_page.php+72
Methods with the same name as their class will not be constructors in a future version of PHP; TriPostInc_CPost_Menu_Widget has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼51.94ms] Passed 4 tests
An overview of server-side resources used by List category posts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.97 ▼39.35 |
Dashboard /wp-admin | 2.10 ▼1.21 | 6.52 ▼46.78 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 5.12 ▼39.88 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 7.41 ▼81.75 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.60 ▼34.46 |
Server storage [IO: ▲0.37MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_tripostinc-cpost-widget |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
List category posts: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,815 ▲80 | 14.74 ▲0.10 | 1.81 ▲0.06 | 44.02 ▲0.06 |
Dashboard /wp-admin | 2,221 ▲30 | 5.88 ▲0.99 | 102.74 ▼4.83 | 84.23 ▲35.99 |
Posts /wp-admin/edit.php | 2,104 ▲18 | 2.00 ▼0.01 | 37.15 ▲2.00 | 35.60 ▲0.32 |
Add New Post /wp-admin/post-new.php | 1,680 ▲146 | 22.43 ▼0.53 | 750.87 ▲70.34 | 40.75 ▼17.26 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.18 ▼0.02 | 95.78 ▼7.95 | 76.48 ▲30.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/include-post-page/include_post_page.php+72
Methods with the same name as their class will not be constructors in a future version of PHP; TriPostInc_CPost_Menu_Widget has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_tripostinc-cpost-widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/include-post-page/include_post_page.php:60
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This screen shot description corresponds to screenshot-1.png. Note that this screenshot shows the admin section of this plugin how to search post or page ID.), #2 (This screen shot description corresponds to screenshot-2.png. Note that this screenshot shows how to add shotcode inside another post.), #3 (This screen shot description corresponds to screenshot-3.png. Note that this screenshot shows the widget.), #4 (This screen shot description corresponds to screenshot-4.png. Note that this screenshot shows how to add Information in widget.)
include-post-page/include_post_page.php 92% from 13 tests
The main PHP script in "List category posts" version 1.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("include-post-page.php" instead of "include_post_page.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin159 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 39 | 30 | 159 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 0.36MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 305.13KB | 106.34KB | ▼ 65.15% |
screenshot-3.png | 16.37KB | 8.14KB | ▼ 50.24% |
screenshot-4.png | 5.74KB | 3.64KB | ▼ 36.60% |
screenshot-1.png | 35.61KB | 16.58KB | ▼ 53.43% |
images/tribhuj.com_logo.png | 3.48KB | 0.59KB | ▼ 83.16% |