89% zedna-auto-update

Code Review | Zedna Auto Update

WordPress plugin Zedna Auto Update scored89%from 54 tests.

About plugin

  • Plugin page: zedna-auto-update
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 26, 2020
  • Latest release: Jun 26, 2020
  • Number of updates: 2
  • Update frequency: every 3.5 days
  • Top authors: zedna (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /382 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼3.20ms] Passed 4 tests

A check of server-side resources used by Zedna Auto Update
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0442.33 ▲3.96
Dashboard /wp-admin3.34 ▲0.0350.97 ▲2.98
Posts /wp-admin/edit.php3.39 ▲0.0353.70 ▼2.57
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.09 ▼11.81
Media Library /wp-admin/upload.php3.26 ▲0.0336.63 ▼1.39
Zedna Auto Update /wp-admin/options-general.php?page=zedna-auto-update-settings3.2334.56

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Zedna Auto Update
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.27 ▼0.101.87 ▲0.2046.21 ▲4.60
Dashboard /wp-admin2,202 ▲225.62 ▼0.0392.36 ▼2.0837.68 ▲0.72
Posts /wp-admin/edit.php2,104 ▲71.98 ▼0.0339.20 ▲2.6336.24 ▲0.32
Add New Post /wp-admin/post-new.php1,532 ▲623.39 ▲0.37616.24 ▼59.8950.23 ▼3.43
Media Library /wp-admin/upload.php1,407 ▲44.13 ▲0.01103.01 ▼2.8746.12 ▲0.38
Zedna Auto Update /wp-admin/options-general.php?page=zedna-auto-update-settings8771.9723.9132.72

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 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
10 plugin tags: auto, major update, theme, plugin, update...

zedna-auto-update/zedna-autoupdate.php 85% from 13 tests

The principal PHP file in "Zedna Auto Update" v. 1.0 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("zedna-auto-update.php" instead of "zedna-autoupdate.php")
  • Domain Path: The domain path folder was not found ("/languages")

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
Success! There were no dangerous files found in this plugin112 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11211112

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods1
▷ Static methods1100.00%
▷ Public methods1100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.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
There are no PNG files in this plugin