Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- Install procedure had errors
- > Error in wp-content/plugins/pixgridder/lib/functions.php+560
Uncaught Error: Using $this when not in object context in wp-content/plugins/pixgridder/lib/functions.php:560
Stack trace:
#0 wp-content/plugins/pixgridder/lib/functions.php(572): PixGridder::register_options()
#1 wp-content/plugins/pixgridder/lib/functions.php(84): PixGridder::add_general()
#2 wp-includes/class-wp-hook.php(310): PixGridder::activate()
#3 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#4 wp-includes/plugin.php(517): WP_Hook->do_action()
#5 wp-admin/includes/plugin.php(693): do_action()
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.76ms] Passed 4 tests
A check of server-side resources used by PixGridder
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 37.05 ▼0.21 |
Dashboard /wp-admin | 3.31 ▲0.00 | 43.77 ▼4.45 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 41.53 ▼10.63 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 79.72 ▼15.11 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 31.62 ▼0.83 |
Server storage [IO: ▲3.93MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 70 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by PixGridder
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲28 | 14.19 ▼0.16 | 2.02 ▲0.10 | 46.15 ▲4.28 |
Dashboard /wp-admin | 2,192 ▲18 | 5.55 ▼0.03 | 86.54 ▼4.32 | 37.86 ▼4.55 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 2.00 ▼0.04 | 34.77 ▼5.74 | 28.80 ▼11.58 |
Add New Post /wp-admin/post-new.php | 1,546 ▲11 | 22.91 ▲4.49 | 637.21 ▲23.82 | 54.59 ▼7.75 |
Media Library /wp-admin/upload.php | 1,400 ▼0 | 4.17 ▼0.01 | 94.24 ▼6.11 | 40.12 ▼5.22 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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 no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pixgridder/pixgridder.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/pixgridder/lib/pixgridder-builder.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/pixgridder/lib/admin.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots require images: #1 (Pixgridder output demo), #2 (Pixgridder UI - take a look to the description tab (2))
pixgridder/pixgridder.php Passed 13 tests
"PixGridder" version 2.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
83 characters long description:
A simple page composer that splits your pages/posts into grid with columns and rows
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected9,016 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 127 | 50 | 3,777 |
SVG | 9 | 0 | 0 | 3,152 |
JavaScript | 8 | 353 | 141 | 1,359 |
PHP | 5 | 162 | 164 | 688 |
PO File | 1 | 11 | 11 | 40 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 75.00 |
▷ Minimum class complexity | 75.00 |
▷ Maximum class complexity | 75.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 32 | |
▷ Static methods | 7 | 21.88% |
▷ Public methods | 32 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/pixgridder-banner.png | 51.06KB | 23.49KB | ▼ 54.01% |