84% deltaganu

Code Review | Deltaga.nu

WordPress plugin Deltaga.nu scored 84% from 54 tests.

About plugin

  • Plugin page: deltaganu
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1.1-4.5.2
  • WordPress version: 6.3.1
  • First release: Aug 17, 2015
  • Latest release: May 25, 2016
  • Number of updates: 3
  • Update frequency: every 96.0 days
  • Top authors: jimmydahl (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 670 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
This plugin's installer ran successfully

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

A check of server-side resources used by Deltaga.nu
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.25 ▼2.08
Dashboard /wp-admin3.31 ▲0.0145.74 ▼6.04
Posts /wp-admin/edit.php3.36 ▲0.0142.14 ▼7.36
Add New Post /wp-admin/post-new.php5.91 ▲0.0291.10 ▲0.32
Media Library /wp-admin/upload.php3.23 ▲0.0134.50 ▼4.11

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Deltaga.nu
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲19113.97 ▼0.275.90 ▲4.1345.80 ▲6.78
Dashboard /wp-admin2,224 ▲335.80 ▼0.1098.22 ▼4.9343.10 ▲3.34
Posts /wp-admin/edit.php2,107 ▲212.03 ▼0.0035.91 ▲1.2333.55 ▼2.65
Add New Post /wp-admin/post-new.php1,543 ▲1023.44 ▲0.31632.65 ▲4.2748.08 ▼2.86
Media Library /wp-admin/upload.php1,406 ▲184.21 ▲0.02102.11 ▼4.1943.30 ▼0.95

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/deltaganu/deltaga.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Please add images for these screenshots: #1 (When you have entered your login credentials you are shown a list of all your current events), #2 (When clicking on the show-button in each column you are shown the shortcodes for each published startlist or the registration form)
You can take inspiration from this readme.txt

deltaganu/deltaga.php 92% from 13 tests

The primary PHP file in "Deltaga.nu" version 1.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("deltaganu.php" instead of "deltaga.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected194 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP11212116
JavaScript3122978

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions8
▷ Named functions8100.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
2 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png45.47KB12.30KB▼ 72.95%
assets/screenshot-1.png65.04KB17.63KB▼ 72.89%