90% akari-worker

Code Review | Akari Worker

WordPress plugin Akari Worker scored90%from 54 tests.

About plugin

  • Plugin page: akari-worker
  • Plugin version: 2.0.1
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: Sep 29, 2022
  • Latest release: Jun 26, 2023
  • Number of updates: 13
  • Update frequency: every 20.8 days
  • Top authors: tekniskakari (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /563 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Akari Worker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.24 ▼2.37
Dashboard /wp-admin3.33 ▲0.0353.11 ▼5.93
Posts /wp-admin/edit.php3.38 ▲0.0251.44 ▼0.87
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.58 ▼25.11
Media Library /wp-admin/upload.php3.25 ▲0.0242.18 ▲9.82

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Akari Worker
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4714.38 ▲0.092.20 ▲0.6035.50 ▼7.40
Dashboard /wp-admin2,217 ▲405.56 ▼0.1093.98 ▲5.1475.98 ▲32.15
Posts /wp-admin/edit.php2,102 ▲22.03 ▲0.0439.74 ▲2.0137.82 ▲0.34
Add New Post /wp-admin/post-new.php1,544 ▲1623.18 ▲0.05669.24 ▼18.3959.85 ▲9.62
Media Library /wp-admin/upload.php1,402 ▲24.18 ▼0.05109.03 ▲5.0149.21 ▲4.31

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

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)
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: worker, akari

akari-worker/akari-worker.php Passed 13 tests

The main PHP script in "Akari Worker" version 2.0.1 is automatically included on every request by WordPress
78 characters long description:
Required functions for this website. Do not deactivate unless you are certain.

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
Good job! No executable or dangerous file extensions detected62 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP2162729
CSS23023
HTML13010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.07
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
Namespaces1
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/akari-logo.png2.65KB1.27KB▼ 52.15%
admin/img/Akari-logo-yellow-header.png18.13KB7.27KB▼ 59.87%