Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.69MB] [CPU: ▼31.18ms] Passed 4 tests
Analyzing server-side resources used by SERENGETI BUILDERS POST GRID - SPG
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 39.87 ▼4.35 |
Dashboard /wp-admin | 3.25 ▼0.05 | 28.33 ▼19.91 |
Posts /wp-admin/edit.php | 3.25 ▼0.11 | 23.14 ▼25.99 |
Add New Post /wp-admin/post-new.php | 3.25 ▼2.64 | 23.77 ▼72.66 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 27.05 ▼6.14 |
SerengetiGrid /wp-admin/admin.php?page=sgrid-dashboard | 3.25 | 23.82 |
Settings /wp-admin/admin.php?page=spg-settings | 3.25 | 25.90 |
Server storage [IO: ▲3.05MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for SERENGETI BUILDERS POST GRID - SPG
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,830 ▲95 | 13.62 ▼0.66 | 1.60 ▼0.88 | 36.39 ▼11.36 |
Dashboard /wp-admin | 2,217 ▲26 | 5.91 ▲0.01 | 109.59 ▼0.14 | 78.15 ▲34.14 |
Posts /wp-admin/edit.php | 2,112 ▲20 | 2.00 ▼0.05 | 33.25 ▼4.60 | 32.66 ▲1.23 |
Add New Post /wp-admin/post-new.php | 1,690 ▲157 | 22.28 ▼0.86 | 684.20 ▲15.79 | 57.05 ▲3.51 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.21 ▲0.03 | 106.15 ▼2.63 | 76.51 ▲30.52 |
SerengetiGrid /wp-admin/admin.php?page=sgrid-dashboard | 811 | 2.01 | 23.90 | 26.16 |
Settings /wp-admin/admin.php?page=spg-settings | 1,554 | 2.07 | 24.37 | 26.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=spg-settings
- > User notice in wp-includes/functions.php+5905
Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
- > GET request to /wp-admin/admin.php?page=sgrid-dashboard
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method sgPlugin_ui_dashboard::load_dashboard() should not be called statically
- > GET request to /wp-admin/admin.php?page=spg-settings
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method sgPlugin_ui_settings::load_settings() should not be called statically
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=spg-settings
- > Notice in wp-content/plugins/serengeti-builders/pcm_wp_list_table.php+37
Undefined index: entry
- > GET request to /wp-admin/admin.php?page=spg-settings
- > Notice in wp-content/plugins/serengeti-builders/pcm_wp_list_table.php+201
Undefined index: s
- > GET request to /wp-admin/admin.php?page=spg-settings
- > Notice in wp-content/plugins/serengeti-builders/pcm_wp_list_table.php+121
Undefined index: customvar
SRP 0% 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 fix the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/serengeti-builders/serengeti_builders.php
- > /wp-content/plugins/serengeti-builders/updategrid.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/serengeti-builders/get_grid_data.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_List_Table' not found in wp-content/plugins/serengeti-builders/pcm_wp_list_table.php:3
- > PHP Notice
Undefined variable: frm in wp-content/plugins/serengeti-builders/updategrid.php on line 35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: serengeti post grid, post grid, postgrid
serengeti-builders/serengeti_builders.php 92% from 13 tests
The principal PHP file in "SERENGETI BUILDERS POST GRID - SPG" v. 1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("serengeti-builders.php" instead of "serengeti_builders.php")
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
Everything looks great! No dangerous files found in this plugin14,366 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 12 | 9,026 |
CSS | 3 | 1,506 | 26 | 3,388 |
PHP | 7 | 553 | 248 | 1,952 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 22.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 4.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 44.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 36 | 97.30% |
▷ Protected methods | 1 | 2.70% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
11 PNG files occupy 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/coconutthumbsample.png | 7.54KB | 2.51KB | ▼ 66.73% |
images/logo.png | 4.93KB | 1.79KB | ▼ 63.56% |
images/mangothumbsample.png | 12.43KB | 5.23KB | ▼ 57.92% |
images/favicon.png | 3.67KB | 0.97KB | ▼ 73.50% |
images/screenshot-1.png | 11.83KB | 4.37KB | ▼ 63.02% |