89% easy-font-resize

Code Review | Easy Font Resize

WordPress plugin Easy Font Resize scored89%from 54 tests.

About plugin

  • Plugin page: easy-font-resize
  • Plugin version: 1.0.15
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2.2
  • WordPress version: 6.3.1
  • First release: Jun 19, 2021
  • Latest release: Jun 28, 2023
  • Number of updates: 39
  • Update frequency: every 19.0 days
  • Top authors: ziher4 (100%)

Code review

54 tests

User reviews

10 reviews

Install metrics

700+ active /7,669 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼0.09ms] Passed 4 tests

An overview of server-side resources used by Easy Font Resize
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1441.57 ▼4.57
Dashboard /wp-admin3.44 ▲0.1453.99 ▲5.81
Posts /wp-admin/edit.php3.56 ▲0.2048.28 ▲1.56
Add New Post /wp-admin/post-new.php6.00 ▲0.1293.94 ▲3.52
Media Library /wp-admin/upload.php3.34 ▲0.1234.16 ▼0.88
Easy Font Resize /wp-admin/options-general.php?page=options-wpavefrsz-settings3.3436.26

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 28 new options
New WordPress options
widget_recent-comments
wpavefrsz_show_on_mobile
wpavefrsz_add_notranslate_class
wpavefrsz_theme
wpavefrsz_text_increase
wpavefrsz_main_offset_mobile
wpavefrsz_hide_text
widget_recent-posts
db_upgraded
wpavefrsz_max_modifier
...

Browser metrics Passed 4 tests

An overview of browser requirements for Easy Font Resize
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,051 ▲30515.07 ▲0.776.29 ▲4.6442.93 ▲1.98
Dashboard /wp-admin2,362 ▲1746.38 ▲0.48129.44 ▲26.7543.40 ▲1.99
Posts /wp-admin/edit.php2,268 ▲1793.35 ▲1.3349.90 ▲14.1432.96 ▼0.54
Add New Post /wp-admin/post-new.php1,560 ▲1818.63 ▲0.48584.25 ▼73.1135.21 ▼19.32
Media Library /wp-admin/upload.php1,407 ▲194.22 ▲0.0080.13 ▼27.1243.61 ▼2.32
Easy Font Resize /wp-admin/options-general.php?page=options-wpavefrsz-settings1,7353.2744.29105.67

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 28 options in the database
    • wpavefrsz_add_notranslate_class
    • wpavefrsz_position
    • wpavefrsz_elements_array
    • can_compress_scripts
    • wpavefrsz_instructions_icon
    • widget_recent-posts
    • wpavefrsz_min_modifier
    • wpavefrsz_main_selector
    • wpavefrsz_use_wp_icons
    • wpavefrsz_main_offset
    • ...

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: text, accessibility, resize, font

easy-font-resize/wpave-font-resizer.php 85% from 13 tests

"Easy Font Resize" version 1.0.15's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("easy-font-resize.php" instead of "wpave-font-resizer.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
There were no executable files found in this plugin767 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP28412527
CSS100127
JavaScript2300113

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods480.00%
▷ Protected methods120.00%
▷ Private methods00.00%
Functions13
▷ Named functions215.38%
▷ Anonymous functions1184.62%
Constants2
▷ Global constants2100.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 PNG file occupies 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/bmc_qr.png86.42KB27.37KB▼ 68.33%