84% dcogeomakehappybaby

Code Review | DCoGeoMakeHappyBaby

WordPress plugin DCoGeoMakeHappyBaby scored84%from 54 tests.

About plugin

  • Plugin page: dcogeomakehappybaby
  • Plugin version: Feb 11, 2012...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-3.3.1
  • WordPress version: 6.3.1
  • First release: Feb 27, 2012
  • Latest release: Feb 27, 2012
  • Number of updates: 9
  • Update frequency: every 0.2 days
  • Top authors: nebagakid (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,020 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.14ms] Passed 4 tests

Analyzing server-side resources used by DCoGeoMakeHappyBaby
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.61 ▼5.64
Dashboard /wp-admin3.33 ▲0.0358.26 ▲1.93
Posts /wp-admin/edit.php3.39 ▲0.0350.28 ▼5.64
Add New Post /wp-admin/post-new.php5.92 ▲0.0395.50 ▼5.71
Media Library /wp-admin/upload.php3.26 ▲0.0337.36 ▲0.45

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

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

Browser metrics Passed 4 tests

A check of browser resources used by DCoGeoMakeHappyBaby
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲5313.91 ▼0.391.76 ▼0.1038.95 ▼4.99
Dashboard /wp-admin2,195 ▲155.49 ▼0.1583.52 ▼15.5840.75 ▼4.19
Posts /wp-admin/edit.php2,097 ▼32.03 ▲0.0339.55 ▲1.4838.12 ▲4.53
Add New Post /wp-admin/post-new.php6,233 ▲4,70725.95 ▲2.88870.01 ▲200.0652.63 ▼2.73
Media Library /wp-admin/upload.php1,400 ▼34.18 ▼0.0296.49 ▼6.2241.46 ▼2.36

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dcogeomakehappybaby/dcogeomakehappybaby.php:61

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === dcogeomakehappybaby === )
Please take inspiration from this readme.txt

dcogeomakehappybaby/dcogeomakehappybaby.php 92% from 13 tests

"DCoGeoMakeHappyBaby" version Feb 11, 2012...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "Feb 11, 2012...")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin146 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12122146

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.23
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.16MB with 0.11MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png160.08KB50.03KB▼ 68.75%