Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼8.73ms] Passed 4 tests
This is a short check of server-side resources used by Reusable Text Blocks
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 40.81 ▼12.97 |
Dashboard /wp-admin | 3.34 ▲0.03 | 50.33 ▼7.51 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 49.72 ▼1.41 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 99.41 ▼13.04 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 42.01 ▲7.56 |
All Text Blocks /wp-admin/edit.php?post_type=text-blocks | 3.30 | 40.01 |
Add New /wp-admin/post-new.php?post_type=text-blocks | 3.38 | 48.57 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_textblockswidget |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Reusable Text Blocks
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,847 ▲86 | 14.24 ▼0.06 | 1.74 ▼0.11 | 40.58 ▼4.08 |
Dashboard /wp-admin | 2,222 ▲45 | 5.65 ▼0.01 | 90.64 ▼1.19 | 40.63 ▲0.37 |
Posts /wp-admin/edit.php | 2,130 ▲27 | 2.04 ▲0.06 | 39.01 ▼3.03 | 35.17 ▼0.16 |
Add New Post /wp-admin/post-new.php | 1,571 ▲35 | 23.76 ▲5.63 | 675.50 ▲54.94 | 56.43 ▼5.48 |
Media Library /wp-admin/upload.php | 1,430 ▲30 | 4.16 ▼0.05 | 101.21 ▼4.91 | 45.44 ▼0.15 |
All Text Blocks /wp-admin/edit.php?post_type=text-blocks | 1,085 | 2.07 | 34.47 | 30.67 |
Add New /wp-admin/post-new.php?post_type=text-blocks | 2,178 | 7.57 | 170.09 | 68.41 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_textblockswidget
- db_upgraded
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reusable-text-blocks/text-blocks.php:30
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
9 plugin tags: widget, text blocks, reusable text, content blocks, reusable content...
reusable-text-blocks/text-blocks.php 85% from 13 tests
This is the main PHP file of "Reusable Text Blocks" version 1.5.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("reusable-text-blocks.php" instead of "text-blocks.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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 plugin280 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 74 | 48 | 280 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 13 | |
▷ Named functions | 13 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
menu-icon.png | 0.63KB | 1.20KB | 0.00% |
icon-32.png | 0.54KB | 0.48KB | ▼ 10.38% |