Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.80ms] Passed 4 tests
A check of server-side resources used by Featured Content Block
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 39.54 ▼4.33 |
Dashboard /wp-admin | 3.33 ▲0.02 | 45.39 ▼1.48 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.32 ▼5.10 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 84.42 ▼12.30 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.06 ▲1.04 |
Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Featured Content Block
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲57 | 13.32 ▼1.05 | 1.79 ▲0.12 | 44.52 ▼0.14 |
Dashboard /wp-admin | 2,206 ▲15 | 4.87 ▼0.97 | 106.93 ▲2.56 | 38.69 ▼5.34 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.05 ▲0.05 | 40.50 ▲4.30 | 35.19 ▼2.09 |
Add New Post /wp-admin/post-new.php | 6,253 ▲4,739 | 19.99 ▲2.51 | 909.23 ▲312.80 | 36.39 ▼15.01 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.24 ▲0.00 | 95.82 ▼2.45 | 40.93 ▲0.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
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
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
- 12× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function register_block_pattern() in wp-content/plugins/featured-content-block/patterns/featured-content-column-reverse-pattern.php:12
- > PHP Notice
Trying to get property 'attributes' of non-object in wp-content/plugins/featured-content-block/build/template.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/featured-content-block/patterns/patterns.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/featured-content-block/featured-content-block.php:34
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/featured-content-block/build/template.php:17
- > PHP Notice
Undefined variable: block in wp-content/plugins/featured-content-block/build/template.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function register_block_pattern() in wp-content/plugins/featured-content-block/patterns/featured-content-column-pattern.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function register_block_pattern() in wp-content/plugins/featured-content-block/patterns/featured-content-block-reverse-row-photo-left.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function register_block_pattern() in wp-content/plugins/featured-content-block/patterns/featured-content-block-row-photo-left.php:12
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/featured-content-block/build/template.php on line 15
- > 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 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
1 plugin tags: block
featured-content-block/featured-content-block.php 92% from 13 tests
The main file in "Featured Content Block" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Requires at least: Required version does not match the one declared in readme.txt ("6.0" instead of "5.9")
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
Good job! No executable or dangerous file extensions detected753 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 6 | 90 | 126 | 420 |
PHP | 10 | 41 | 106 | 235 |
JSON | 1 | 0 | 0 | 46 |
Markdown | 3 | 12 | 0 | 43 |
JavaScript | 2 | 0 | 0 | 7 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.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
There were not PNG files found in your plugin