84% alpona

Code Review | Alpona

WordPress plugin Alpona scored 84% from 54 tests.

About plugin

  • Plugin page: alpona
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 5, 2020
  • Latest release: Mar 27, 2021
  • Number of updates: 4
  • Update frequency: every 81.5 days
  • Top authors: engramium (75%)reachmazharul (50%)

Code review

54 tests

User reviews

1 review

Install metrics

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

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

Analyzing server-side resources used by Alpona
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.46 ▲2.66
Dashboard /wp-admin3.31 ▲0.0152.82 ▼4.28
Posts /wp-admin/edit.php3.36 ▲0.0151.60 ▼6.34
Add New Post /wp-admin/post-new.php5.89 ▲0.01122.29 ▲23.17
Media Library /wp-admin/upload.php3.23 ▲0.0033.76 ▼15.90

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Alpona
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,918 ▲12913.96 ▲0.655.73 ▲0.9446.53 ▲2.16
Dashboard /wp-admin2,216 ▲104.84 ▼1.06103.31 ▼1.9439.66 ▼0.32
Posts /wp-admin/edit.php2,095 ▲62.04 ▲0.0336.26 ▼4.3734.32 ▼2.16
Add New Post /wp-admin/post-new.php1,543 ▲17123.33 ▲5.65694.10 ▼148.2455.87 ▲11.87
Media Library /wp-admin/upload.php1,398 ▲104.21 ▼0.0298.93 ▼11.4346.32 ▲0.08

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Widget_Base' not found in wp-content/plugins/alpona/widgets/alpona-card-widget.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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 to be fixed:
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

alpona/alpona.php 92% from 13 tests

"Alpona" version 0.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin353 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP26880265
CSS11288

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity7.50
▷ Minimum class complexity7.00
▷ Maximum class complexity8.00
Average method complexity1.65
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods20
▷ Static methods15.00%
▷ Public methods1785.00%
▷ Protected methods210.00%
▷ Private methods15.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants240.00%
▷ Class constants360.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected