Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼141.44ms] Passed 4 tests
Server-side resources used by Selectable Post and Page
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.22 | 34.27 ▲8.70 |
Dashboard /wp-admin | 3.16 ▲0.11 | 47.44 ▲1.78 |
Posts /wp-admin/edit.php | 3.21 ▲0.11 | 46.41 ▼0.83 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 100.23 ▼571.76 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 38.54 ▲5.05 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 30 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_selectable_post_and_page |
Browser metrics Passed 4 tests
An overview of browser requirements for Selectable Post and Page
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.93 ▲0.02 | 8.47 ▼0.14 | 52.96 ▲0.19 |
Dashboard /wp-admin | 2,972 ▲41 | 5.89 ▼0.08 | 139.49 ▼13.94 | 116.25 ▼4.32 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.70 ▲0.02 | 74.85 ▼0.13 | 104.45 ▲10.76 |
Add New Post /wp-admin/post-new.php | 1,687 ▲4 | 15.33 ▼3.41 | 383.60 ▼0.18 | 115.36 ▼5.45 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▲0.01 | 168.33 ▼3.72 | 123.38 ▼1.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_selectable_post_and_page
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
Please fix the following
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: pim in wp-content/plugins/selectable-post-and-page/template/full-image.php on line 5
- > PHP Fatal error
Uncaught Error: Call to a member function get_size() on null in wp-content/plugins/selectable-post-and-page/template/default.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/selectable-post-and-page/template/list-view.php:7
- > PHP Fatal error
Uncaught Error: Call to a member function get_size() on null in wp-content/plugins/selectable-post-and-page/template/full-image.php:5
- > PHP Notice
Undefined variable: pim in wp-content/plugins/selectable-post-and-page/template/default.php on line 6
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5, #6, #7 in selectable-post-and-page/assets to your readme.txt
selectable-post-and-page/selectable-post-and-page.php Passed 13 tests
The entry point to "Selectable Post and Page" version 1.3.4 is a PHP file that has certain tags in its header comment area
76 characters long description:
Add a widget that can display posts from random, a single category and page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin717 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 111 | 163 | 499 |
CSS | 2 | 24 | 11 | 114 |
JavaScript | 1 | 15 | 9 | 104 |
PHP code Passed 2 tests
A brief analysis 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.27 |
Average class complexity | 13.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 45.00 |
Average method complexity | 4.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 31.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 15 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 1.59MB with 0.74MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/image/layout-list.png | 0.36KB | 0.15KB | ▼ 59.18% |
screenshots/screenshot-4.png | 44.42KB | 24.87KB | ▼ 44.02% |
screenshot-1.png | 21.18KB | 13.38KB | ▼ 36.81% |
assets/image/layout-default.png | 0.34KB | 0.16KB | ▼ 54.70% |
screenshots/screenshot-1.png | 21.18KB | 13.38KB | ▼ 36.81% |