68% gallagher-website-design

Code Review | Gallagher Website Design

WordPress plugin Gallagher Website Design scored68%from 54 tests.

About plugin

  • Plugin page: gallagher-website...
  • Plugin version: 2.1
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3.2
  • WordPress version: 6.3.1
  • First release: Jan 26, 2023
  • Latest release: Nov 2, 2023
  • Number of updates: 8
  • Update frequency: every 35.0 days
  • Top authors: gallagherwebsitedesign (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /228 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1341.16 ▼1.10
Dashboard /wp-admin3.16 ▼0.1526.24 ▼25.59
Posts /wp-admin/edit.php3.16 ▼0.2025.36 ▼26.43
Add New Post /wp-admin/post-new.php3.16 ▼2.7327.93 ▼70.71
Media Library /wp-admin/upload.php3.16 ▼0.0825.72 ▼11.22
Settings /wp-admin/admin.php?page=gwd_wp_plugin_settings3.1625.09
Tutorials /wp-admin/admin.php?page=gwd_wp_plugin3.1627.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲6814.68 ▲0.321.80 ▼0.1844.66 ▲1.69
Dashboard /wp-admin2,234 ▲575.69 ▲0.1184.79 ▼23.5539.90 ▼28.23
Posts /wp-admin/edit.php2,136 ▲362.06 ▲0.0940.99 ▲1.7836.96 ▲2.93
Add New Post /wp-admin/post-new.php1,545 ▲1923.54 ▲0.67678.89 ▼8.2252.15 ▼19.81
Media Library /wp-admin/upload.php1,440 ▲434.21 ▼0.0496.89 ▼5.3140.73 ▼4.07
Settings /wp-admin/admin.php?page=gwd_wp_plugin_settings9341.7829.5929.62
Tutorials /wp-admin/admin.php?page=gwd_wp_plugin1,0382.7930.7958.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP384291842
CSS23713
JavaScript2012

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 code0.30
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions2284.62%
▷ Anonymous functions415.38%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
images/logo.png5.67KB4.01KB▼ 29.30%