Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼7.92ms] Passed 4 tests
Analyzing server-side resources used by Selected Categories Post Ordering
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.07 | 41.15 ▼4.28 |
Dashboard /wp-admin | 3.42 ▲0.03 | 52.04 ▼12.72 |
Posts /wp-admin/edit.php | 3.53 ▲0.13 | 55.95 ▲1.46 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.09 | 90.51 ▼16.14 |
Media Library /wp-admin/upload.php | 3.35 ▲0.07 | 43.51 ▲4.32 |
Selected Categories Post Ordering /wp-admin/options-general.php?page=selected-categories-post-ordering | 3.31 | 38.85 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
scpo_options |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Selected Categories Post Ordering
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,905 ▲159 | 13.44 ▼1.09 | 8.20 ▲6.65 | 45.82 ▲1.83 |
Dashboard /wp-admin | 2,203 ▲35 | 5.62 ▼0.06 | 88.88 ▼1.46 | 40.26 ▼3.14 |
Posts /wp-admin/edit.php | 2,111 ▲8 | 1.97 ▼0.01 | 34.64 ▼8.09 | 35.24 ▼2.64 |
Add New Post /wp-admin/post-new.php | 1,533 ▲16 | 23.00 ▲4.34 | 685.89 ▲164.40 | 57.06 ▲1.94 |
Media Library /wp-admin/upload.php | 1,408 ▲5 | 4.25 ▲0.05 | 111.59 ▲11.83 | 46.04 ▼0.83 |
Selected Categories Post Ordering /wp-admin/options-general.php?page=selected-categories-post-ordering | 798 | 2.03 | 24.79 | 27.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=selected-categories-post-ordering
- > Warning in wp-content/plugins/selected-categories-post-ordering/admin/class-selected-categories-post-ordering-admin.php+182
Illegal string offset 'uncategorized'
- > GET request to /wp-admin/options-general.php?page=selected-categories-post-ordering
- > Notice in wp-content/plugins/selected-categories-post-ordering/admin/class-selected-categories-post-ordering-admin.php+182
Uninitialized string offset: 0
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=selected-categories-post-ordering
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- 11 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=selected-categories-post-ordering
- > Warning in wp-content/plugins/easy-age-verifier/lib/extras/wpApi.php+48
file_get_contents(http://www.fillyourtaproom.com/wp-json/wp/v2/posts?per_page=10): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/selected-categories-post-ordering/public/partials/selected-categories-post-ordering-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/selected-categories-post-ordering/admin/partials/selected-categories-post-ordering-admin-display.php:19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== Selected Categories Post Ordering===
)
selected-categories-post-ordering/selected-categories-post-ordering.php 92% from 13 tests
The main PHP file in "Selected Categories Post Ordering" ver. 1.1.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 143 characters long)
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
No dangerous file extensions were detected276 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 113 | 570 | 270 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.37 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 30 | |
▷ Static methods | 2 | 6.67% |
▷ Public methods | 25 | 83.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 16.67% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There are no PNG files in this plugin