74% aria-font

Code Review | Aria Font

WordPress plugin Aria Font scored 74% from 54 tests.

About plugin

  • Plugin page: aria-font
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-5.2.3
  • WordPress version: 6.3.1
  • First release: Oct 12, 2017
  • Latest release: Sep 15, 2019
  • Number of updates: 9
  • Update frequency: every 78.2 days
  • Top authors: ariawp (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

500+ active / 16,386 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼36.72ms] Passed 4 tests

An overview of server-side resources used by Aria Font
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0146.75 ▲5.80
Dashboard /wp-admin3.00 ▼0.3024.50 ▼27.16
Posts /wp-admin/edit.php3.00 ▼0.3623.76 ▼26.25
Add New Post /wp-admin/post-new.php3.00 ▼2.8925.06 ▼79.13
Media Library /wp-admin/upload.php3.00 ▼0.2323.52 ▼14.33
فونت پوسته /wp-admin/admin.php?page=ariafont-settings3.0023.44
پشتیبانی /wp-admin/admin.php?page=ariafont-about3.0024.80

Server storage [IO: ▲8.83MB] [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: 192 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Aria Font
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲9213.19 ▼1.204.51 ▲2.7840.02 ▼0.54
Dashboard /wp-admin2,230 ▲425.75 ▲0.9194.91 ▼9.2044.62 ▲1.95
Posts /wp-admin/edit.php2,116 ▲272.05 ▲0.0139.19 ▼2.9341.80 ▲5.65
Add New Post /wp-admin/post-new.php1,550 ▲3618.46 ▲0.83647.17 ▼7.1355.57 ▲0.13
Media Library /wp-admin/upload.php1,418 ▲304.22 ▲0.04109.00 ▼12.1851.58 ▲3.88
فونت پوسته /wp-admin/admin.php?page=ariafont-settings1,0582.0625.5860.98
پشتیبانی /wp-admin/admin.php?page=ariafont-about8742.0222.6040.93

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • This plugin cannot be uninstalled
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 14 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ariafont-about
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
    • > GET request to /wp-admin/admin.php?page=ariafont-settings
    • > Notice in wp-content/plugins/aria-font/inc/font-setting.php+6
    Undefined index: settings-updated
  • 43 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=ariafont-settings
    • > Notice in wp-content/plugins/aria-font/inc/font-setting.php+66
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/admin.php?page=ariafont-about
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
    • > GET request to /wp-admin/admin.php?page=ariafont-about
    • > Warning in wp-content/plugins/aria-font/inc/feedback.php+16
    session_start(): Cannot start session when headers already sent

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tags: Please reduce the number of tags, currently 20 tag instead of maximum 10
You can look at the official readme.txt

aria-font/aria-font.php Passed 13 tests

The main PHP script in "Aria Font" version 1.2 is automatically included on every request by WordPress
27 characters long description:
Change WordPress Theme Font

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,256 lines of code in 49 files:
LanguageFilesBlank linesComment linesLines of code
SVG100643
CSS4488172428
PHP43314185

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.65
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin