89% mowomo-variable-fonts

Code Review | mowomo Variable Fonts

WordPress plugin mowomo Variable Fonts scored89%from 54 tests.

About plugin

  • Plugin page: mowomo-variable-f...
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Feb 15, 2020
  • Latest release: Apr 3, 2020
  • Number of updates: 8
  • Update frequency: every 12.0 days
  • Top authors: Pedromcj95 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

40+ active /1,155 total downloads

Benchmarks

Plugin footprint 83% 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.23MB] [CPU: ▼0.36ms] Passed 4 tests

Analyzing server-side resources used by mowomo Variable Fonts
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.71 ▲0.2541.31 ▲4.93
Dashboard /wp-admin3.52 ▲0.2244.73 ▼1.71
Posts /wp-admin/edit.php3.63 ▲0.2842.88 ▼3.17
Add New Post /wp-admin/post-new.php6.12 ▲0.2490.61 ▲1.46
Media Library /wp-admin/upload.php3.44 ▲0.2234.96 ▲2.00

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 43 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

mowomo Variable Fonts: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,950 ▲20413.77 ▼0.606.96 ▲5.3143.76 ▼2.75
Dashboard /wp-admin2,244 ▲534.92 ▲0.01101.39 ▼3.6077.27 ▲35.51
Posts /wp-admin/edit.php2,124 ▲352.03 ▲0.0234.31 ▼1.3732.58 ▲0.72
Add New Post /wp-admin/post-new.php1,701 ▲16722.66 ▼0.63661.05 ▼21.9045.58 ▼9.96
Media Library /wp-admin/upload.php1,423 ▲354.13 ▼0.06103.73 ▼8.6178.38 ▲29.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • mwm_variable_font_admin_notice_default
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
2 plugin tags: variable, fonts

mowomo-variable-fonts/mwm-variable-font.php 85% from 13 tests

The main file in "mowomo Variable Fonts" v. 1.1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("mowomo-variable-fonts.php" instead of "mwm-variable-font.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,929 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP102301081,089
JavaScript56435337
Sass23113177
CSS5281174
PO File13663110
Markdown128042

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity2.20
▷ Minimum class complexity1.00
▷ Maximum class complexity5.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions2887.50%
▷ Anonymous functions412.50%
Constants11
▷ Global constants11100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/logo.png0.96KB0.94KB▼ 2.54%