Benchmarks
Plugin footprint 65% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.79MB] [CPU: ▼33.49ms] Passed 4 tests
Server-side resources used by Gallagher Website Design
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 41.16 ▼1.10 |
Dashboard /wp-admin | 3.16 ▼0.15 | 26.24 ▼25.59 |
Posts /wp-admin/edit.php | 3.16 ▼0.20 | 25.36 ▼26.43 |
Add New Post /wp-admin/post-new.php | 3.16 ▼2.73 | 27.93 ▼70.71 |
Media Library /wp-admin/upload.php | 3.16 ▼0.08 | 25.72 ▼11.22 |
Settings /wp-admin/admin.php?page=gwd_wp_plugin_settings | 3.16 | 25.09 |
Tutorials /wp-admin/admin.php?page=gwd_wp_plugin | 3.16 | 27.17 |
Server storage [IO: ▲0.22MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by Gallagher Website Design
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,825 ▲68 | 14.68 ▲0.32 | 1.80 ▼0.18 | 44.66 ▲1.69 |
Dashboard /wp-admin | 2,234 ▲57 | 5.69 ▲0.11 | 84.79 ▼23.55 | 39.90 ▼28.23 |
Posts /wp-admin/edit.php | 2,136 ▲36 | 2.06 ▲0.09 | 40.99 ▲1.78 | 36.96 ▲2.93 |
Add New Post /wp-admin/post-new.php | 1,545 ▲19 | 23.54 ▲0.67 | 678.89 ▼8.22 | 52.15 ▼19.81 |
Media Library /wp-admin/upload.php | 1,440 ▲43 | 4.21 ▼0.04 | 96.89 ▼5.31 | 40.73 ▼4.07 |
Settings /wp-admin/admin.php?page=gwd_wp_plugin_settings | 934 | 1.78 | 29.59 | 29.62 |
Tutorials /wp-admin/admin.php?page=gwd_wp_plugin | 1,038 | 2.79 | 30.79 | 58.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function '' not found or invalid function name
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=gwd_wp_plugin
- > Warning in wp-includes/class-wp-hook.php+310
call_user_func_array() expects parameter 1 to be a valid callback, function '' not found or invalid function name
- > GET request to /wp-admin/admin.php?page=gwd_wp_plugin_settings
- > Notice in wp-content/plugins/gallagher-website-design/gallagher-website-design.php+597
Undefined index: action
- > GET request to /wp-admin/admin.php?page=gwd_wp_plugin_settings
- > Notice in wp-content/plugins/gallagher-website-design/gallagher-website-design.php+645
Undefined index: instagram_app_id
- > GET request to /wp-admin/admin.php?page=gwd_wp_plugin
- > Notice in wp-content/plugins/gallagher-website-design/gallagher-website-design.php+255
Undefined variable: categories
- > GET request to /wp-admin/admin.php?page=gwd_wp_plugin
- > Warning in wp-content/plugins/gallagher-website-design/gallagher-website-design.php+255
Invalid argument supplied for foreach()
- > GET request to /wp-admin/admin.php?page=gwd_wp_plugin
- > Notice in wp-content/plugins/gallagher-website-design/gallagher-website-design.php+276
Undefined variable: tutorials
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/gallagher-website-design/DiviInstagramModule.php:2
- > PHP Fatal error
Uncaught Error: Class 'ET_Builder_Module' not found in wp-content/plugins/gallagher-website-design/includes/DiviInstagramModule.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/gallagher-website-design/gallagher-website-design.php:17
- > 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 Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: gallagher website design, website design, gallagher, website design company, website
gallagher-website-design/gallagher-website-design.php Passed 13 tests
"Gallagher Website Design" version 2.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
113 characters long description:
Provides site features, videos on how-to edit your site, support, and tools developed by Gallagher Website Design
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
Good job! No executable or dangerous file extensions detected857 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 84 | 291 | 842 |
CSS | 2 | 3 | 7 | 13 |
JavaScript | 2 | 0 | 1 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 22 | 84.62% |
▷ Anonymous functions | 4 | 15.38% |
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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/logo.png | 5.67KB | 4.01KB | ▼ 29.30% |