84% ahmeti-wp-helpers

Code Review | Ahmeti WP Helpers

WordPress plugin Ahmeti WP Helpers scored84%from 54 tests.

About plugin

  • Plugin page: ahmeti-wp-helpers
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.1
  • WordPress version: 6.3.1
  • First release: Mar 30, 2023
  • Latest release: Apr 8, 2023
  • Number of updates: 3
  • Update frequency: every 3.0 days
  • Top authors: ahmeti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /155 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

An overview of server-side resources used by Ahmeti WP Helpers
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.12 ▲3.21
Dashboard /wp-admin3.34 ▲0.0446.85 ▲2.95
Posts /wp-admin/edit.php3.45 ▲0.1049.43 ▲3.86
Add New Post /wp-admin/post-new.php5.92 ▲0.0482.05 ▼6.57
Media Library /wp-admin/upload.php3.26 ▲0.0436.81 ▲1.39
Ahmeti WP Helpers /wp-admin/options-general.php?page=ahmeti-wp-helpers3.2336.43

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Ahmeti WP Helpers
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.28 ▼1.004.32 ▲2.7245.89 ▲9.84
Dashboard /wp-admin2,210 ▲215.80 ▲0.86100.74 ▼14.0137.39 ▼3.71
Posts /wp-admin/edit.php2,093 ▲42.02 ▲0.0640.42 ▲4.9834.42 ▲1.58
Add New Post /wp-admin/post-new.php1,522 ▲223.04 ▲0.15673.24 ▲15.9556.29 ▼1.22
Media Library /wp-admin/upload.php1,389 ▲44.16 ▼0.0493.27 ▼12.5240.38 ▼4.45
Ahmeti WP Helpers /wp-admin/options-general.php?page=ahmeti-wp-helpers8232.0624.0127.07

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'AhmetiWpHelpers' not found in wp-content/plugins/ahmeti-wp-helpers/SettingsAhmetiWpHelpers.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test


Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: rest, xml, rpc, api, disable

ahmeti-wp-helpers/index.php 92% from 13 tests

The main PHP file in "Ahmeti WP Helpers" ver. 1.1.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ahmeti-wp-helpers.php" instead of "index.php")

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 detected204 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity5.80
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods1794.44%
▷ Protected methods15.56%
▷ Private methods00.00%
▷ Named functions00.00%
▷ Anonymous functions2100.00%
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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
There were not PNG files found in your plugin