Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.98ms] Passed 4 tests
This is a short check of server-side resources used by Repeated Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 40.01 ▼0.28 |
Dashboard /wp-admin | 3.34 ▲0.04 | 50.43 ▼3.66 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 52.63 ▲4.83 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 84.38 ▼21.44 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 39.19 ▲1.45 |
Blocks /wp-admin/edit.php?post_type=xb-blocks | 3.31 | 39.83 |
Add New /wp-admin/post-new.php?post_type=xb-blocks | 3.39 | 51.63 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Repeated Blocks
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲35 | 14.67 ▲0.32 | 1.87 ▲0.14 | 43.35 ▲3.17 |
Dashboard /wp-admin | 2,224 ▲49 | 5.56 ▼0.15 | 88.23 ▼17.18 | 44.06 ▼1.52 |
Posts /wp-admin/edit.php | 2,130 ▲30 | 1.95 ▼0.08 | 36.45 ▼0.27 | 36.03 ▲0.48 |
Add New Post /wp-admin/post-new.php | 1,552 ▲26 | 23.13 ▲0.14 | 683.63 ▲4.66 | 58.08 ▲5.61 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.23 ▲0.04 | 111.79 ▼1.59 | 47.73 ▲0.64 |
Blocks /wp-admin/edit.php?post_type=xb-blocks | 1,094 | 1.93 | 34.15 | 31.41 |
Add New /wp-admin/post-new.php?post_type=xb-blocks | 2,191 | 7.71 | 171.54 | 69.62 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected
SRP 50% 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 take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/repeated-blocks/xian_block.php:32
- > 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 issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: visualcomposer, blocks, repeat, repeated, vc
repeated-blocks/xian_block.php 85% from 13 tests
The entry point to "Repeated Blocks" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("repeated-blocks.php" instead of "xian_block.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 311 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin117 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 36 | 39 | 98 |
JavaScript | 1 | 3 | 0 | 19 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
Average class complexity | 5.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin