72% panomity-darkweb-press

Code Review | Panomity DarkWeb Press

WordPress plugin Panomity DarkWeb Press scored72%from 54 tests.

About plugin

  • Plugin page: panomity-darkweb-...
  • Plugin version: 8.1.2
  • PHP compatiblity: 8.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.1-6.1
  • WordPress version: 6.3.1
  • First release: Mar 22, 2023
  • Latest release: Mar 22, 2023
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: panomity (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /243 total downloads

Benchmarks

Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼5.59ms] 75% from 4 tests

Server-side resources used by Panomity DarkWeb Press
The following require your attention
  • CPU: Total CPU usage must kept under 500.00ms (currently 696.10ms on /wp-admin/admin.php?page=panomity-darkweb-press-shortcodes)
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1442.61 ▲0.43
Dashboard /wp-admin3.46 ▲0.1550.02 ▼5.77
Posts /wp-admin/edit.php3.57 ▲0.2151.28 ▼1.52
Add New Post /wp-admin/post-new.php6.06 ▲0.1792.29 ▼15.48
Media Library /wp-admin/upload.php3.38 ▲0.1539.05 ▲0.54
Shortcodes /wp-admin/admin.php?page=panomity-darkweb-press-shortcodes3.37696.10
Bulk Check Emails /wp-admin/admin.php?page=panomity-darkweb-press-emails3.40357.78
Panomity DarkWeb Press /wp-admin/admin.php?page=panomity-darkweb-press3.3735.73

Server storage [IO: ▲0.22MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
The plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 11 new options
New WordPress options
theysaidso_admin_options
panomity_token
panomity_darkweb_check_email_service_id
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded
panomity_darkweb_check_domain_service_id
panomity_darkweb_check_bulkcheck_service_id
panomity_darkweb_check_password_service_id
...

Browser metrics Passed 4 tests

Panomity DarkWeb Press: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,004 ▲24313.86 ▼0.528.57 ▲6.8744.29 ▲2.64
Dashboard /wp-admin2,327 ▲1505.64 ▼0.0687.40 ▼3.3537.98 ▼7.13
Posts /wp-admin/edit.php2,131 ▲281.99 ▼0.0238.91 ▲3.7135.63 ▼1.64
Add New Post /wp-admin/post-new.php1,566 ▲4023.35 ▲5.76663.68 ▼16.8255.60 ▼13.94
Media Library /wp-admin/upload.php1,431 ▲314.21 ▼0.03110.67 ▲2.8348.62 ▼2.13
Shortcodes /wp-admin/admin.php?page=panomity-darkweb-press-shortcodes1,0552.3525.2042.49
Bulk Check Emails /wp-admin/admin.php?page=panomity-darkweb-press-emails9661.8926.3228.20
Panomity DarkWeb Press /wp-admin/admin.php?page=panomity-darkweb-press9162.1927.9032.30

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 11 options in the database
    • widget_theysaidso_widget
    • panomity_token
    • panomity_darkweb_check_bulkcheck_service_id
    • db_upgraded
    • panomity_darkweb_check_email_service_id
    • widget_recent-posts
    • can_compress_scripts
    • panomity_darkweb_check_password_service_id
    • widget_recent-comments
    • theysaidso_admin_options
    • ...

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=panomity-darkweb-press-emails
    • > Notice in wp-content/plugins/panomity-darkweb-press/admin/class-panomity-darkweb-press-admin.php+182
    Undefined property: stdClass::$token
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=panomity-darkweb-press-emails
    • > Notice in wp-content/plugins/panomity-darkweb-press/admin/class-panomity-darkweb-press-admin.php+213
    Undefined property: stdClass::$services
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=panomity-darkweb-press-emails
    • > Warning in wp-content/plugins/panomity-darkweb-press/admin/class-panomity-darkweb-press-admin.php+284
    Invalid argument supplied for foreach()

SRP 50% 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
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/panomity-darkweb-press/admin/partials/panomity-darkweb-press-admin-bulk-check-emails-display.php:74
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/panomity-darkweb-press/admin/partials/panomity-darkweb-press-admin-display.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/panomity-darkweb-press/admin/partials/panomity-darkweb-press-admin-shortcodes-display.php:11

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following browser errors
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=panomity-darkweb-press
    • > Network (severe)
    wp-content/plugins/panomity-darkweb-press/admin/js/panomity-darkweb-press-admin.js?ver=8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: cyber security, darkweb, data security, security, leaks...

panomity-darkweb-press/panomity-darkweb-press.php 92% from 13 tests

Analyzing the main PHP file in "Panomity DarkWeb Press" version 8.1.2
Please take the time to fix the following:
  • Description: The description should be shorter than 140 characters (currently 148 characters long)

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
There were no executable files found in this plugin1,909 lines of code in 23 files:
LanguageFilesBlank linesComment linesLines of code
PHP162245371,326
PO File2155192507
Markdown131072
JavaScript1003
CSS30121

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity7.38
▷ Minimum class complexity1.00
▷ Maximum class complexity25.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods41
▷ Static methods1434.15%
▷ Public methods3585.37%
▷ Protected methods00.00%
▷ Private methods614.63%
Functions17
▷ Named functions1270.59%
▷ Anonymous functions529.41%
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
PNG images were not found in this plugin