84% wp-googoose

Code Review | WP GooGoose

WordPress plugin WP GooGoose scored84%from 54 tests.

About plugin

  • Plugin page: wp-googoose
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jul 2, 2016
  • Latest release: Jul 11, 2016
  • Number of updates: 5
  • Update frequency: every 1.8 days
  • Top authors: aadel112 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /641 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼6.91ms] Passed 4 tests

An overview of server-side resources used by WP GooGoose
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.56 ▼3.43
Dashboard /wp-admin3.32 ▲0.0244.77 ▼9.77
Posts /wp-admin/edit.php3.37 ▲0.0246.76 ▲1.08
Add New Post /wp-admin/post-new.php5.92 ▲0.0488.73 ▼14.77
Media Library /wp-admin/upload.php3.24 ▲0.0235.58 ▲0.34
WP GooGoose /wp-admin/options-general.php?page=wp_googoose3.2131.09

Server storage [IO: ▲0.17MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by WP GooGoose
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,818 ▲4713.50 ▼0.883.55 ▲1.6042.97 ▼1.97
Dashboard /wp-admin2,216 ▲285.09 ▲0.20104.64 ▼9.1238.10 ▼4.47
Posts /wp-admin/edit.php2,099 ▲132.63 ▲0.5739.42 ▲3.7835.26 ▲1.75
Add New Post /wp-admin/post-new.php1,523 ▲323.11 ▲0.05616.32 ▼72.9350.62 ▼4.82
Media Library /wp-admin/upload.php1,398 ▲104.40 ▲0.2395.76 ▼11.2042.38 ▼2.60
WP GooGoose /wp-admin/options-general.php?page=wp_googoose1,4292.4753.5328.92

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp-googoose/goo-goose.php

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 important because it is parsed by WordPress.org for the public listing of your plugin
8 plugin tags: word document, microsoft word, document, automate, html to word...

wp-googoose/goo-goose.php 92% from 13 tests

The main file in "WP GooGoose" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-googoose.php" instead of "goo-goose.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin3,177 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript584482,965
PHP13041175
Markdown117027
CSS10010

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/images/goose-footer.png0.91KB1.24KB0.00%
js/images/goose-current-page.png1.26KB1.73KB0.00%
js/images/goose.png1.11KB1.38KB0.00%
js/images/goose-page-break.png0.97KB1.36KB0.00%
js/images/goose-total-page.png0.90KB1.19KB0.00%