10% dispito

Code Review | Dispito - discussions and comments

WordPress plugin Dispito - discussions and comments scored10%from 54 tests.

About plugin

  • Plugin page: dispito
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.0
  • WordPress version: 6.3.1
  • First release: Oct 9, 2013
  • Latest release: Oct 9, 2013
  • Number of updates: 4
  • Update frequency: every 4.3 days
  • Top authors: erik_cz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,611 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/dispito/dispito.php+127
    Undefined variable: db_ok

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

Server-side resources used by Dispito - discussions and comments
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.62 ▼2.46
Dashboard /wp-admin3.32 ▲0.0253.62 ▲2.71
Posts /wp-admin/edit.php3.38 ▲0.0248.73 ▲0.29
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.48 ▼11.41
Media Library /wp-admin/upload.php3.25 ▲0.0233.93 ▼4.41
Dispito /wp-admin/edit-comments.php?page=dispito3.26249.21
All Comments /wp-admin/edit-comments.php3.3139.91

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: 1 new table, 6 new options
New tables
wp_dispito_info
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dispito - discussions and comments
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲7713.68 ▼0.975.46 ▲3.4443.07 ▲3.25
Dashboard /wp-admin2,223 ▲354.89 ▼0.19103.85 ▲2.7137.38 ▼4.30
Posts /wp-admin/edit.php2,103 ▲171.97 ▼0.0437.52 ▲2.6730.80 ▼4.95
Add New Post /wp-admin/post-new.php1,535 ▲123.18 ▼0.24695.58 ▲18.3957.57 ▲5.54
Media Library /wp-admin/upload.php1,402 ▲174.31 ▲0.12110.18 ▲10.9046.56 ▲2.14
Dispito /wp-admin/edit-comments.php?page=dispito7862.2222.8621.47
All Comments /wp-admin/edit-comments.php1,8122.3036.1534.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/dispito/comments.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/dispito/dispito.php:143

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Public and private discussions and forums - Individual discussions going to lock or completely revenge. You can also set the who in the discussions has access), #2 (Web administration - Complete management of the discussions and forums is through the web interface), #3 (Traffic to Your domain - Discussion forums can run on Your domain eg discussion.YourSite.com), #4 (Skins: change the design of the - Design services to match your site), #5 (Mobile version - Automatically the content of the match in the display on your mobile phone or tablet), #6 (Spam protection - All of the discussion and the forums are protected against komentářovému spam and automatickýcm robots), #7 (Setting up your own forums and their management - The user has the possibility to establish their own forums, which itself administruje (blocking users, adding the administrators of the forum, the set of authorized users).), #8 (Vote on other comments -Each logged in user has the opportunity to vote on the comments of other users.), #9 (Inserting comments as an anonymous user - The user is allowed to insert a comment under the anonymous user, even in the event that the user is logged in.), #10 (Editing comments by the author - The author of the comments is allowed its editing.), #11 (Popular discussions - The user can mark the discussion for their favorite. In the case of the favorites of the discussions, the user is notified of new comments.)
  • Tags: Please delete some tags, you are using 12 tag instead of maximum 10
Please take inspiration from this readme.txt

dispito/dispito.php Passed 13 tests

The principal PHP file in "Dispito - discussions and comments" v. 1.0.1 is loaded by WordPress automatically on each request
100 characters long description:
The Dispito replaces your WordPress comment system with your comments hosted and powered by Dispito.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected112 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22922112

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.14
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%
Constants3
▷ Global constants3100.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
11 PNG files occupy 0.34MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png45.62KB16.97KB▼ 62.81%
screenshot-2.png41.26KB13.84KB▼ 66.46%
screenshot-6.png19.48KB7.21KB▼ 63.00%
screenshot-11.png38.12KB14.04KB▼ 63.16%
screenshot-10.png23.59KB8.77KB▼ 62.83%