Benchmarks
Plugin footprint Passed 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.02MB] [CPU: ▼148.29ms] Passed 4 tests
This is a short check of server-side resources used by Query Shortcode
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 30.17 ▼10.17 |
Dashboard /wp-admin | 3.08 ▲0.03 | 45.38 ▼5.95 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 44.51 ▼6.27 |
Add New Post /wp-admin/post-new.php | 5.44 ▲0.00 | 85.28 ▼570.78 |
Media Library /wp-admin/upload.php | 3.02 ▲0.02 | 36.14 ▼3.27 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Query Shortcode: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,681 ▲85 | 15.92 ▲0.44 | 8.49 ▼0.39 | 50.99 ▲0.87 |
Dashboard /wp-admin | 2,973 ▲40 | 6.04 ▼0.09 | 138.82 ▼28.56 | 121.01 ▲1.72 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.68 ▼0.01 | 70.05 ▲3.67 | 89.01 ▼13.33 |
Add New Post /wp-admin/post-new.php | 1,683 ▲79 | 18.81 ▼0.03 | 385.84 ▼8.43 | 122.21 ▲6.14 |
Media Library /wp-admin/upload.php | 1,810 ▼0 | 5.03 ▲0.03 | 162.28 ▼8.89 | 128.36 ▲9.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Uninstaller ran successfully
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/query-shortcode/init.php
- 6× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/query-shortcode/lenses/accordion.php:11
- > PHP Notice
Undefined variable: posts in wp-content/plugins/query-shortcode/lenses/carousel.php on line 11
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/query-shortcode/lenses/tabs.php:10
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/query-shortcode/lenses/carousel.php:11
- > PHP Notice
Undefined variable: posts in wp-content/plugins/query-shortcode/lenses/tabs.php on line 10
- > PHP Notice
Undefined variable: posts in wp-content/plugins/query-shortcode/lenses/accordion.php on line 11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: post, shortcode, query
query-shortcode/init.php 92% from 13 tests
Analyzing the main PHP file in "Query Shortcode" version 0.2.1
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("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 file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin115 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 30 | 66 | 113 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
An overview of 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 | 22.00 |
▷ Minimum class complexity | 22.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin