83% wp-uighur-fonts

Code Review | WP-Uighur-Fonts

WordPress plugin WP-Uighur-Fonts scored83%from 54 tests.

About plugin

  • Plugin page: wp-uighur-fonts
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.1
  • WordPress version: 6.3.1
  • First release: Mar 13, 2015
  • Latest release: Apr 11, 2015
  • Number of updates: 21
  • Update frequency: every 1.4 days
  • Top authors: doghap (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,357 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.35ms] Passed 4 tests

An overview of server-side resources used by WP-Uighur-Fonts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.24 ▲1.63
Dashboard /wp-admin3.32 ▲0.0250.87 ▼0.03
Posts /wp-admin/edit.php3.37 ▲0.0144.11 ▼3.32
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.39 ▲0.73
Media Library /wp-admin/upload.php3.24 ▲0.0135.17 ▼2.77

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

WP-Uighur-Fonts: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲10013.32 ▼1.075.53 ▲3.8050.80 ▲1.14
Dashboard /wp-admin2,210 ▲225.85 ▼0.0597.10 ▼7.2668.06 ▲22.62
Posts /wp-admin/edit.php2,093 ▲42.04 ▼0.0036.18 ▲0.1731.30 ▼5.17
Add New Post /wp-admin/post-new.php1,518 ▼1517.35 ▼5.65625.89 ▼46.7347.96 ▼27.13
Media Library /wp-admin/upload.php1,392 ▲14.22 ▼0.0295.67 ▼5.7326.71 ▼24.49

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-uighur-fonts/ug.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid URI ("")
Please take inspiration from this readme.txt

wp-uighur-fonts/ug.php 85% from 13 tests

The entry point to "WP-Uighur-Fonts" version 1.1.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 501 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-uighur-fonts.php" instead of "ug.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
Success! There were no dangerous files found in this plugin138 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP1123595
JavaScript10435
CSS4008

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin