Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- The plugin cannot be installed
- > User notice in wp-includes/functions.php+5905
Function wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
Server metrics [RAM: ▲0.08MB] [CPU: ▼7.57ms] Passed 4 tests
An overview of server-side resources used by Coding Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 46.76 ▲1.64 |
Dashboard /wp-admin | 3.39 ▲0.05 | 51.58 ▼17.00 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 54.34 ▲0.89 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 92.18 ▼15.57 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 38.68 ▲1.39 |
New Snippet /wp-admin/admin.php?page=coding-blocks-new-snippet | 3.31 | 33.07 |
Theme Preview /wp-admin/admin.php?page=coding-blocks-preview | 3.31 | 37.73 |
Plugin Options /wp-admin/admin.php?page=coding-blocks-settings | 3.30 | 36.02 |
Coding Blocks /wp-admin/admin.php?page=coding-blocks | 3.28 | 33.16 |
Manage Snippets /wp-admin/admin.php?page=coding-blocks-snippets | 3.34 | 34.65 |
Server storage [IO: ▲0.60MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 228 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_coding_blocks |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
coding_blocks_version |
Browser metrics Passed 4 tests
Coding Blocks: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,976 ▲215 | 14.36 ▼0.37 | 12.38 ▲10.79 | 40.02 ▼3.29 |
Dashboard /wp-admin | 2,243 ▲63 | 5.17 ▼0.42 | 99.06 ▲12.19 | 44.79 ▲0.59 |
Posts /wp-admin/edit.php | 2,148 ▲48 | 2.25 ▲0.30 | 40.30 ▲2.67 | 41.14 ▲5.27 |
Add New Post /wp-admin/post-new.php | 1,401 ▼125 | 17.17 ▼5.88 | 579.27 ▼103.72 | 29.06 ▼38.32 |
Media Library /wp-admin/upload.php | 1,451 ▲54 | 4.66 ▲0.54 | 105.28 ▼21.11 | 44.12 ▼13.72 |
New Snippet /wp-admin/admin.php?page=coding-blocks-new-snippet | 1,390 | 2.80 | 48.81 | 55.00 |
Theme Preview /wp-admin/admin.php?page=coding-blocks-preview | 1,690 | 2.64 | 51.24 | 42.34 |
Plugin Options /wp-admin/admin.php?page=coding-blocks-settings | 1,145 | 2.03 | 31.20 | 32.68 |
Coding Blocks /wp-admin/admin.php?page=coding-blocks | 1,089 | 2.02 | 30.53 | 36.36 |
Manage Snippets /wp-admin/admin.php?page=coding-blocks-snippets | 1,052 | 2.19 | 31.82 | 39.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_coding_blocks
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- coding_blocks_version
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/admin.php?page=coding-blocks-new-snippet
- > Notice in wp-content/plugins/coding-blocks/admin/pages/new-snippet.php+12
Trying to get property 'line_nums' of non-object
- > GET request to /wp-admin/admin.php?page=coding-blocks-new-snippet
- > Notice in wp-content/plugins/coding-blocks/admin/pages/new-snippet.php+14
Trying to get property 'copy_btn' of non-object
- > GET request to /wp-admin/admin.php?page=coding-blocks-settings
- > Notice in wp-content/plugins/coding-blocks/admin/pages/settings.php+61
Undefined variable: success
- > GET request to /wp-admin/admin.php?page=coding-blocks-snippets
- > Notice in wp-content/plugins/coding-blocks/admin/pages/snippets.php+226
Undefined index: search
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 fix the following items
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/coding-blocks/public/partials/coding-blocks-public-display.php
- > /wp-content/plugins/coding-blocks/admin/partials/coding-blocks-admin-display.php
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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
7 plugin tags: code-snippet, sunburst, shortcode, programming, code...
coding-blocks/coding-blocks.php Passed 13 tests
The entry point to "Coding Blocks" version 1.1.0 is a PHP file that has certain tags in its header comment area
120 characters long description:
Coding Blocks allows you to create reusable and attractive code snippets that can be embedded into your WordPress posts.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected4,898 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 39 | 1,155 | 577 | 2,925 |
PHP | 19 | 265 | 675 | 1,234 |
HTML | 3 | 28 | 1 | 374 |
JavaScript | 38 | 204 | 550 | 365 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 1.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 29 | |
▷ Static methods | 2 | 6.90% |
▷ Public methods | 24 | 82.76% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 17.24% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin