Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.11MB] [CPU: ▼141.03ms] Passed 4 tests
An overview of server-side resources used by Crisp Grid
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.95 ▲0.23 | 36.44 ▲13.97 |
Dashboard /wp-admin | 3.17 ▲0.12 | 45.15 ▲4.33 |
Posts /wp-admin/edit.php | 3.22 ▲0.12 | 41.20 ▼2.81 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.10 | 88.87 ▼565.44 |
Media Library /wp-admin/upload.php | 3.11 ▲0.11 | 33.41 ▼0.19 |
Grids /wp-admin/edit.php?post_type=crispgrid | 3.16 | 36.25 |
Add New /wp-admin/post-new.php?post_type=crispgrid | 3.16 | 43.82 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 17 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Crisp Grid
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,826 ▲231 | 16.75 ▲1.16 | 13.22 ▲4.13 | 48.54 ▼4.56 |
Dashboard /wp-admin | 3,008 ▲77 | 5.85 ▼0.10 | 134.19 ▼6.66 | 106.32 ▼1.71 |
Posts /wp-admin/edit.php | 2,771 ▲32 | 2.71 ▲0.01 | 65.37 ▲2.32 | 89.26 ▼2.72 |
Add New Post /wp-admin/post-new.php | 1,706 ▲91 | 18.73 ▼2.28 | 362.27 ▲90.63 | 103.74 ▼4.57 |
Media Library /wp-admin/upload.php | 1,842 ▲32 | 5.01 ▼0.03 | 142.81 ▼2.14 | 120.83 ▲8.21 |
Grids /wp-admin/edit.php?post_type=crispgrid | 1,457 | 2.93 | 62.26 | 71.90 |
Add New /wp-admin/post-new.php?post_type=crispgrid | 2,639 | 3.55 | 98.54 | 133.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled completely, with no zombie files or tables
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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/crisp-grid/inc/crispgrid-shortcode.php:151
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/crisp-grid/inc/crispgrid-metabox.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/crisp-grid/crispgrid.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (17 tag instead of maximum 10)
crisp-grid/crispgrid.php 85% from 13 tests
The entry point to "Crisp Grid" version 1.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("crisp-grid.php" instead of "crispgrid.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected872 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 93 | 93 | 416 |
CSS | 2 | 55 | 0 | 242 |
PO File | 1 | 49 | 54 | 109 |
JavaScript | 2 | 13 | 0 | 76 |
Markdown | 1 | 12 | 0 | 29 |
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.29 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 8 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 8 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.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
5 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/crispgrid-post-date.png | 0.84KB | 0.44KB | ▼ 48.15% |
css/images/crispgrid-post-author.png | 0.87KB | 0.75KB | ▼ 13.74% |
css/images/plugin-banner.png | 5.64KB | 2.07KB | ▼ 63.34% |
css/images/theme-banner.png | 5.53KB | 1.94KB | ▼ 64.88% |
css/images/plugin-support.png | 3.37KB | 1.14KB | ▼ 66.04% |