84% ma-teyahch

Code Review | Ma Teyahch

WordPress plugin Ma Teyahch scored84%from 54 tests.

About plugin

  • Plugin page: ma-teyahch
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Oct 16, 2021
  • Latest release: Oct 20, 2021
  • Number of updates: 9
  • Update frequency: every 0.6 days
  • Top authors: miminou (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /268 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼1.25ms] Passed 4 tests

A check of server-side resources used by Ma Teyahch
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.96 ▲0.20
Dashboard /wp-admin3.31 ▲0.0150.55 ▼1.91
Posts /wp-admin/edit.php3.36 ▲0.0053.83 ▲4.12
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.81 ▼4.97
Media Library /wp-admin/upload.php3.23 ▲0.0038.68 ▲1.69

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ma Teyahch
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /117,542 ▲114,78113.57 ▼0.79197.27 ▲195.4347.07 ▲3.07
Dashboard /wp-admin2,224 ▲214.85 ▼0.0097.76 ▼16.5538.82 ▼3.82
Posts /wp-admin/edit.php2,100 ▼31.97 ▲0.0040.72 ▲1.8835.57 ▼0.70
Add New Post /wp-admin/post-new.php1,545 ▲523.15 ▲0.34645.69 ▲16.3851.57 ▲3.11
Media Library /wp-admin/upload.php1,400 ▲34.32 ▲0.10104.08 ▲3.6942.65 ▼3.26

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% 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)
Good news, no errors were detected

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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ma-teyahch/ma-teyahch.php:15

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: filter bad words, bad words, remove bad words, bane

ma-teyahch/ma-teyahch.php Passed 13 tests

The main PHP script in "Ma Teyahch" version 0.1.0 is automatically included on every request by WordPress
139 characters long description:
A plugin that filter the bad Algerian words in arabic and french letters, the list is static now, and it will be updated from time to time.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected155 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript110148
PHP1497

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin