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.03MB] [CPU: ▼4.79ms] Passed 4 tests
This is a short check of server-side resources used by Custom Query Shortcode
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 38.29 ▼3.78 |
Dashboard /wp-admin | 3.33 ▲0.03 | 44.94 ▼4.32 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 47.50 ▼0.68 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 90.95 ▼10.36 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.25 ▲2.87 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Query Shortcode
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,802 ▲67 | 13.63 ▼0.99 | 1.90 ▲0.07 | 42.34 ▲2.08 |
Dashboard /wp-admin | 2,206 ▲18 | 5.84 ▲0.93 | 104.97 ▼1.83 | 41.60 ▼0.62 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.16 | 38.93 ▼1.58 | 34.63 ▼0.42 |
Add New Post /wp-admin/post-new.php | 1,534 ▲5 | 23.20 ▲4.84 | 662.42 ▲18.54 | 50.81 ▼4.19 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.18 ▼0.00 | 92.69 ▼6.22 | 42.00 ▲0.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/custom-query-shortcode/init.php
- 16× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Notice
Undefined variable: posts in wp-content/plugins/custom-query-shortcode/lenses/article-excerpt-date.php on line 11
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/custom-query-shortcode/lenses/article-excerpt-date.php:11
- > PHP Notice
Undefined variable: posts in wp-content/plugins/custom-query-shortcode/lenses/tabs.php on line 10
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/custom-query-shortcode/lenses/ul.php:10
- > PHP Notice
Undefined variable: posts in wp-content/plugins/custom-query-shortcode/lenses/accordion.php on line 11
- > PHP Notice
Undefined variable: posts in wp-content/plugins/custom-query-shortcode/lenses/ul-title-date.php on line 11
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/custom-query-shortcode/lenses/cards.php:11
- > PHP Notice
Undefined variable: posts in wp-content/plugins/custom-query-shortcode/lenses/ul.php on line 10
- > PHP Notice
Undefined variable: posts in wp-content/plugins/custom-query-shortcode/lenses/cards.php on line 11
- > PHP Notice
Undefined variable: posts in wp-content/plugins/custom-query-shortcode/lenses/carousel.php on line 11
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: query, shortcode, post
custom-query-shortcode/init.php 92% from 13 tests
This is the main PHP file of "Custom Query Shortcode" version 0.4.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("custom-query-shortcode.php" instead of "init.php")
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
Everything looks great! No dangerous files found in this plugin213 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 51 | 137 | 211 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 28.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 28.00 |
Average method complexity | 4.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin