84% make-donald-drumpf-again-aka-drumpf-it

Code Review | Make Donald Drumpf Again

WordPress plugin Make Donald Drumpf Again scored84%from 54 tests.

About plugin

  • Plugin page: make-donald-drump...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.5
  • WordPress version: 6.3.1
  • First release: Mar 17, 2016
  • Latest release: Mar 17, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: rinatkhaziev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /622 total downloads


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.01MB] [CPU: ▼12.83ms] Passed 4 tests

This is a short check of server-side resources used by Make Donald Drumpf Again
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.50 ▲3.78
Dashboard /wp-admin3.32 ▲0.0145.73 ▼5.04
Posts /wp-admin/edit.php3.37 ▲0.0146.32 ▼12.54
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.02 ▼30.77
Media Library /wp-admin/upload.php3.24 ▲0.0133.48 ▼2.97

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Make Donald Drumpf Again
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.44 ▲0.141.77 ▲0.1644.48 ▲3.38
Dashboard /wp-admin2,203 ▲185.80 ▲0.91100.76 ▼15.7139.92 ▼4.49
Posts /wp-admin/edit.php2,089 ▼02.05 ▼0.0133.33 ▼9.7238.85 ▲1.66
Add New Post /wp-admin/post-new.php1,537 ▲423.39 ▲0.07658.03 ▼20.4756.08 ▲3.89
Media Library /wp-admin/upload.php1,388 ▲34.17 ▼0.0794.88 ▼10.5140.66 ▼6.55

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

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 fix the following items
  • 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/make-donald-drumpf-again-aka-drumpf-it/make-donald-drumpf-again.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Screenshot #1 (We made Donald Drumpf again!) image missing
You can take inspiration from this readme.txt

make-donald-drumpf-again-aka-drumpf-it/make-donald-drumpf-again.php 92% from 13 tests

The principal PHP file in "Make Donald Drumpf Again" v. 0.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("make-donald-drumpf-again-aka-drumpf-it.php" instead of "make-donald-drumpf-again.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
There were no executable files found in this plugin49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.62
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
4 PNG files occupy 0.43MB with 0.29MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png114.88KB32.78KB▼ 71.46%
screenshot-2.png77.29KB22.80KB▼ 70.51%
assets/banner-1544x500.png188.51KB74.48KB▼ 60.49%
assets/banner-772x250.png60.64KB22.73KB▼ 62.52%