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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.83MB] [CPU: ▲4.06ms] Passed 4 tests
This is a short check of server-side resources used by Custom Query Blocks
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.32 ▲0.86 | 44.31 ▼1.35 |
Dashboard /wp-admin | 4.15 ▲0.85 | 58.73 ▲5.64 |
Posts /wp-admin/edit.php | 4.20 ▲0.85 | 59.27 ▲7.01 |
Add New Post /wp-admin/post-new.php | 6.72 ▲0.84 | 109.29 ▲4.93 |
Media Library /wp-admin/upload.php | 4.01 ▲0.78 | 44.17 ▲7.36 |
Custom Query Blocks /wp-admin/options-general.php?page=custom-query-blocks | 3.98 | 38.83 |
Server storage [IO: ▲1.54MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 37 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Custom Query Blocks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.56 ▲0.27 | 1.75 ▼0.38 | 39.90 ▼5.82 |
Dashboard /wp-admin | 2,199 ▲22 | 5.64 ▼0.03 | 89.00 ▲2.94 | 41.84 ▲3.73 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.95 ▼0.07 | 38.71 ▲2.66 | 37.40 ▲0.17 |
Add New Post /wp-admin/post-new.php | 6,201 ▲4,664 | 19.36 ▲0.98 | 902.79 ▲267.08 | 55.56 ▼7.37 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.25 ▲0.09 | 95.80 ▼14.87 | 44.97 ▲0.24 |
Custom Query Blocks /wp-admin/options-general.php?page=custom-query-blocks | 900 | 2.05 | 29.80 | 29.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% 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 50% 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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'PTAM\\Includes\\Admin\\Tabs\\Tabs' not found in wp-content/plugins/post-type-archive-mapping/includes/admin/tabs/class-support.php:16
- > PHP Fatal error
Uncaught Error: Class 'PTAM\\Includes\\Admin\\Tabs\\Tabs' not found in wp-content/plugins/post-type-archive-mapping/includes/admin/tabs/class-settings.php:16
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-type-archive-mapping/post-type-archive-mapping.php:539
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 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
5 plugin tags: 404 page, map pages, archives, post type block, category grid
post-type-archive-mapping/post-type-archive-mapping.php Passed 13 tests
The entry point to "Custom Query Blocks" version 5.1.6 is a PHP file that has certain tags in its header comment area
99 characters long description:
Map your post type and term archives to a page and use our Gutenberg blocks to show posts or terms.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,770 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 336 | 1,153 | 3,018 |
JSON | 3 | 0 | 0 | 730 |
SVG | 1 | 0 | 0 | 19 |
CSS | 2 | 0 | 0 | 2 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code 50% from 2 tests
This is a very shot review of cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 124)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 34.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 143.00 |
Average method complexity | 6.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 124.00 |
Code structure | ||
---|---|---|
Namespaces | 7 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 1 | 6.67% |
▷ Concrete classes | 14 | 93.33% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 41 | 40.20% |
▷ Public methods | 99 | 97.06% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 2.94% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
2 PNG files occupy 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/logo.png | 9.80KB | 4.08KB | ▼ 58.33% |
img/loading.png | 21.33KB | 9.82KB | ▼ 53.96% |