68% tifinagh

Code Review | Tifinagh

WordPress plugin Tifinagh scored68%from 54 tests.

About plugin

  • Plugin page: tifinagh
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Dec 17, 2013
  • Latest release: Dec 17, 2013
  • Number of updates: 17
  • Update frequency: every 0.1 days
  • Top authors: chesouth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,304 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.17MB] [CPU: ▼43.49ms] Passed 4 tests

Analyzing server-side resources used by Tifinagh
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.80 ▼0.6614.62 ▼27.22
Dashboard /wp-admin2.84 ▼0.4719.24 ▼25.46
Posts /wp-admin/edit.php2.84 ▼0.5215.24 ▼36.98
Add New Post /wp-admin/post-new.php2.84 ▼3.0516.07 ▼84.31
Media Library /wp-admin/upload.php2.84 ▼0.3916.87 ▼14.41
Tifinagh /wp-admin/themes.php?page=tifinagh2.8417.12

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Tifinagh
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.31 ▼1.251.63 ▼0.3239.87 ▼4.69
Dashboard /wp-admin2,210 ▲194.81 ▼1.04101.82 ▼0.6339.80 ▼4.22
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0139.17 ▼4.6434.14 ▼2.54
Add New Post /wp-admin/post-new.php1,531 ▼723.34 ▲0.37670.38 ▲78.9748.43 ▼10.25
Media Library /wp-admin/upload.php1,386 ▼24.15 ▼0.0395.22 ▼4.9143.89 ▲1.59
Tifinagh /wp-admin/themes.php?page=tifinagh1,6742.1524.4451.25

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The plugin did not uninstall gracefully
    • > Warning in wp-content/plugins/tifinagh/tifinagh.php+59
    Use of undefined constant EDD_PLUGIN_FILE - assumed 'EDD_PLUGIN_FILE' (this will throw an Error in a future version of PHP)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
    • > GET request to /wp-admin/themes.php?page=tifinagh
    • > Warning in wp-content/plugins/tifinagh/tifinagh.php+59
    Use of undefined constant EDD_PLUGIN_FILE - assumed 'EDD_PLUGIN_FILE' (this will throw an Error in a future version of PHP)

SRP 50% 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
Please fix the following
  • 4× 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/tifinagh/inc/admin.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/tifinagh/inc/styles.php:116
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/tifinagh/inc/functions.php:141
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/tifinagh/tifinagh.php:19

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: font, custom fonts, tamazight, upload font, tifinagh...

tifinagh/tifinagh.php Passed 13 tests

Analyzing the main PHP file in "Tifinagh" version 1.0
126 characters long description:
This plugin allows you to create your website in Tifinagh with various fonts, you can add other fonts of Tifinagh if you want.

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
No dangerous file extensions were detected609 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP49499441
CSS180150
JavaScript13018

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.54
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%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
css/tifinagh.png15.50KB1.00KB▼ 93.57%