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
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.00ms] Passed 4 tests
This is a short check of server-side resources used by Goodlayers Blocks
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 43.33 ▲0.72 |
Dashboard /wp-admin | 3.32 ▼0.02 | 53.50 ▼8.87 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.56 ▼3.17 |
Add New Post /wp-admin/post-new.php | 6.21 ▲0.32 | 93.69 ▼12.68 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 39.41 ▲3.49 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Goodlayers Blocks
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲24 | 14.73 ▲0.35 | 2.64 ▲0.58 | 44.83 ▲3.97 |
Dashboard /wp-admin | 2,195 ▲21 | 5.61 ▲0.08 | 94.30 ▲4.17 | 41.49 ▲0.06 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.97 ▼0.02 | 35.66 ▼4.43 | 36.35 ▲3.75 |
Add New Post /wp-admin/post-new.php | 6,219 ▲4,693 | 19.49 ▼3.69 | 970.98 ▲285.21 | 39.36 ▼15.87 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.20 ▲0.04 | 97.92 ▼7.60 | 43.65 ▼2.45 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- 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 no errors were found, this is by no means an exhaustive test
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
The following issues need your attention
- 3× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/goodlayers-blocks/goodlayers-blocks.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/goodlayers-blocks/category-filter.php:66
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/goodlayers-blocks/util.php:40
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Contributors: Contributors not specified
goodlayers-blocks/goodlayers-blocks.php Passed 13 tests
"Goodlayers Blocks" version 1.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Extra useful elements for theme styling
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected649 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 94 | 44 | 561 |
CSS | 1 | 11 | 6 | 80 |
JavaScript | 8 | 0 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
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 | 15 | |
▷ Named functions | 15 | 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
There were not PNG files found in your plugin