Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.99ms] Passed 4 tests
A check of server-side resources used by Block-a-saurus
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.01 | 41.58 ▲0.42 |
Dashboard /wp-admin | 3.32 ▲0.01 | 45.72 ▼3.00 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 48.41 ▲0.05 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.60 ▼4.35 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.76 ▼0.65 |
Server storage [IO: ▲2.80MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Block-a-saurus
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.23 ▼0.08 | 1.69 ▼0.27 | 47.00 ▼1.94 |
Dashboard /wp-admin | 2,206 ▲18 | 5.79 ▼0.10 | 114.20 ▲8.63 | 45.22 ▼0.44 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.05 ▲0.04 | 38.17 ▼1.76 | 32.74 ▼8.24 |
Add New Post /wp-admin/post-new.php | 6,183 ▲4,648 | 26.08 ▲2.80 | 904.83 ▲263.29 | 75.75 ▲15.15 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.21 ▲0.10 | 117.98 ▲10.17 | 42.77 ▼5.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-a-saurus/block-a-saurus.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
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: blockasaurus, block, game, trex, gutenberg
block-a-saurus/block-a-saurus.php 85% from 13 tests
The principal PHP file in "Block-a-saurus" v. 1.0.1 is loaded by WordPress automatically on each request
The following require your attention:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- 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 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin8,038 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 2 | 0 | 0 | 6,027 |
JavaScript | 5 | 405 | 659 | 1,845 |
CSS | 1 | 22 | 4 | 123 |
PHP | 1 | 7 | 32 | 43 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 2 | |
▷ Named functions | 2 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
9 compressed PNG files occupy 0.08MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
src/img/default_100_percent/100-offline-sprite.png | 2.58KB | 2.69KB | 0.00% |
src/img/default_200_percent/200-error-offline.png | 0.26KB | 0.30KB | 0.00% |
src/img/offline-sprite-2x.png | 3.04KB | 3.03KB | 0.16% |
src/img/offline-sprite-1x.png | 2.46KB | 2.45KB | 0.36% |
src/img/default_200_percent/200-offline-sprite.png | 3.17KB | 3.52KB | 0.00% |