79% world-domination

Code Review | World Domination

WordPress plugin World Domination scored79%from 54 tests.

About plugin

  • Plugin page: world-domination
  • Plugin version: 2.1.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.3
  • WordPress version: 6.3.1
  • First release: May 17, 2017
  • Latest release: Sep 7, 2023
  • Number of updates: 106
  • Update frequency: every 21.8 days
  • Top authors: dartiss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,844 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼11.54ms] Passed 4 tests

Server-side resources used by World Domination
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0441.54 ▼1.35
Dashboard /wp-admin3.26 ▼0.0936.54 ▼27.17
Posts /wp-admin/edit.php3.40 ▲0.0447.01 ▼6.98
Add New Post /wp-admin/post-new.php5.93 ▲0.0486.90 ▼10.67
Media Library /wp-admin/upload.php3.28 ▲0.0439.85 ▲3.93

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 8 new options
New WordPress options
world_domination
recovery_mode_email_last_sent
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for World Domination
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,805 ▼96612.41 ▼1.942.11 ▲0.1439.99 ▼7.99
Dashboard /wp-admin1,216 ▼9721.38 ▼4.4813.56 ▼104.4432.50 ▼12.71
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.0037.27 ▲0.6341.57 ▲6.94
Add New Post /wp-admin/post-new.php1,667 ▲13921.59 ▲3.09673.35 ▲40.4828.88 ▼19.23
Media Library /wp-admin/upload.php1,391 ▼04.18 ▲0.01106.84 ▲8.5544.62 ▲0.33

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
  • Zombie WordPress options detected upon uninstall: 7 options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • widget_recent-comments

Smoke tests 50% 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 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/world-domination/wp-somethingty-percent/wpbokeh-somethingty.php
    • > /wp-content/plugins/world-domination/wp-somethingty-percent/wp-somethingty.php
  • 39× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Warning
      imagecolordeallocate() expects exactly 2 parameters, 1 given in wp-content/plugins/world-domination/wp-somethingty-percent/wpbokeh-somethingty.php on line 180
    • > PHP Warning
      imagettftext(): Could not find/open font in wp-content/plugins/world-domination/wp-somethingty-percent/wp-somethingty.php on line 56
    • > PHP Warning
      imagettftext(): Could not find/open font in wp-content/plugins/world-domination/wp-somethingty-percent/wp-somethingty.php on line 31
    • > PHP Warning
      imagettftext(): Could not find/open font in wp-content/plugins/world-domination/wp-somethingty-percent/wp-somethingty.php on line 56
    • > PHP Warning
      imagettftext(): Could not find/open font in wp-content/plugins/world-domination/wp-somethingty-percent/wp-somethingty.php on line 31
    • > PHP Warning
      imagettftext(): Could not find/open font in wp-content/plugins/world-domination/wp-somethingty-percent/wp-somethingty.php on line 31
    • > PHP Warning
      imagettftext(): Could not find/open font in wp-content/plugins/world-domination/wp-somethingty-percent/wp-somethingty.php on line 31
    • > PHP Warning
      imagettftext(): Could not find/open font in wp-content/plugins/world-domination/wp-somethingty-percent/wp-somethingty.php on line 31
    • > PHP Warning
      imagettftext(): Could not find/open font in wp-content/plugins/world-domination/wp-somethingty-percent/wp-somethingty.php on line 56
    • > PHP Warning
      Division by zero in wp-content/plugins/world-domination/wp-somethingty-percent/wpbokeh-somethingty.php on line 136

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 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
5 plugin tags: coverage, share, w3tech, cms, market

world-domination/world-domination.php Passed 13 tests

The main PHP script in "World Domination" version 2.1.2 is automatically included on every request by WordPress
61 characters long description:
🌎 Add WordPress market coverage summary to your dashboard.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin293 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP4142169293

PHP code Passed 2 tests

An overview 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.20
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%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected