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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.80 ▼0.66 | 14.62 ▼27.22 |
Dashboard /wp-admin | 2.84 ▼0.47 | 19.24 ▼25.46 |
Posts /wp-admin/edit.php | 2.84 ▼0.52 | 15.24 ▼36.98 |
Add New Post /wp-admin/post-new.php | 2.84 ▼3.05 | 16.07 ▼84.31 |
Media Library /wp-admin/upload.php | 2.84 ▼0.39 | 16.87 ▼14.41 |
Tifinagh /wp-admin/themes.php?page=tifinagh | 2.84 | 17.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 13.31 ▼1.25 | 1.63 ▼0.32 | 39.87 ▼4.69 |
Dashboard /wp-admin | 2,210 ▲19 | 4.81 ▼1.04 | 101.82 ▼0.63 | 39.80 ▼4.22 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.01 | 39.17 ▼4.64 | 34.14 ▼2.54 |
Add New Post /wp-admin/post-new.php | 1,531 ▼7 | 23.34 ▲0.37 | 670.38 ▲78.97 | 48.43 ▼10.25 |
Media Library /wp-admin/upload.php | 1,386 ▼2 | 4.15 ▼0.03 | 95.22 ▼4.91 | 43.89 ▲1.59 |
Tifinagh /wp-admin/themes.php?page=tifinagh | 1,674 | 2.15 | 24.44 | 51.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 94 | 99 | 441 |
CSS | 1 | 8 | 0 | 150 |
JavaScript | 1 | 3 | 0 | 18 |
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 code | 0.54 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/tifinagh.png | 15.50KB | 1.00KB | ▼ 93.57% |