10% archive-akkordion

Code Review | Archive Akkordion

WordPress plugin Archive Akkordion scored10%from 54 tests.

About plugin

  • Plugin page: archive-akkordion
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5.2
  • WordPress version: 6.3.1
  • First release: Jun 9, 2016
  • Latest release: Jun 7, 2016
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: istvan_r9 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active /1,161 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/archive-akkordion/admin/class-archive-akkordion-admin.php+117
    Methods with the same name as their class will not be constructors in a future version of PHP; IL_Archive_Akkordion has a deprecated constructor

Server metrics [RAM: ▼1.86MB] [CPU: ▼51.82ms] Passed 4 tests

This is a short check of server-side resources used by Archive Akkordion
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.13 ▼1.346.18 ▼38.36
Dashboard /wp-admin2.15 ▼1.166.36 ▼40.40
Posts /wp-admin/edit.php2.15 ▼1.216.85 ▼43.58
Add New Post /wp-admin/post-new.php2.15 ▼3.745.34 ▼84.92
Media Library /wp-admin/upload.php2.15 ▼1.096.02 ▼27.50

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
widget_widget-archive-akkordion
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Archive Akkordion
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,887 ▲15213.59 ▼1.006.68 ▲4.8240.66 ▼4.55
Dashboard /wp-admin2,207 ▲164.85 ▼0.04103.38 ▼0.2243.75 ▲1.08
Posts /wp-admin/edit.php2,090 ▼22.13 ▲0.0440.01 ▼3.0232.84 ▼4.00
Add New Post /wp-admin/post-new.php1,519 ▲523.18 ▲5.66600.19 ▼63.7056.75 ▲3.36
Media Library /wp-admin/upload.php1,395 ▲74.20 ▼0.0795.99 ▼4.4741.99 ▼3.37

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/archive-akkordion/admin/class-archive-akkordion-admin.php+117
    Methods with the same name as their class will not be constructors in a future version of PHP; IL_Archive_Akkordion has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_widget-archive-akkordion
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
The following issues need your attention
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/archive-akkordion/public/partials/archive-akkordion-public-display.php
    • > /wp-content/plugins/archive-akkordion/admin/partials/archive-akkordion-admin-display.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/archive-akkordion/admin/class-archive-akkordion-admin.php:117

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please specify the plugin name on the first line ( === archive-akkordion === )
  • Screenshots: Screenshot #1 (Archive Akkordion settings and customizations.) image missing
You can take inspiration from this readme.txt

archive-akkordion/archive-akkordion.php Passed 13 tests

The primary PHP file in "Archive Akkordion" version 1.0.0 is used by WordPress to initiate all plugin functionality
65 characters long description:
A simple archive widget with a custom layout and accordion style.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin304 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12159561283
JavaScript253214
CSS2277

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity4.38
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png139.46KB50.16KB▼ 64.03%