94% font-size

Code Review | Font Size

WordPress plugin Font Size scored 94% from 54 tests.

About plugin

  • Plugin page: font-size
  • Plugin version: 1.2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.3.2
  • WordPress version: 5.8.1
  • First release: Aug 30, 2016
  • Latest release: Jan 15, 2020
  • Number of updates: 3
  • Update frequency: every 411.0 days
  • Top authors: seosbg (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

1,000+ active / 11,977 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼148.58ms] Passed 4 tests

Server-side resources used by Font Size
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.86 ▲0.1431.06 ▲12.43
Dashboard /wp-admin3.09 ▲0.0436.01 ▼16.69
Posts /wp-admin/edit.php3.15 ▲0.0446.91 ▼2.94
Add New Post /wp-admin/post-new.php5.45 ▲0.0294.14 ▼570.93
Media Library /wp-admin/upload.php3.04 ▲0.0332.73 ▼3.77

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Font Size: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,728 ▲13215.88 ▲0.339.14 ▼0.9649.26 ▼7.65
Dashboard /wp-admin2,985 ▲545.91 ▼0.03141.25 ▼13.38153.01 ▲35.53
Posts /wp-admin/edit.php2,762 ▲262.71 ▲0.0169.89 ▼8.1496.84 ▼2.27
Add New Post /wp-admin/post-new.php1,688 ▲518.83 ▲0.39407.56 ▲22.75119.68 ▼4.66
Media Library /wp-admin/upload.php1,773 ▼344.99 ▼0.03135.68 ▼26.83154.45 ▲29.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/font-size/font-size.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Please add an image for screenshot #1 (Admin Panel view of submitted form data.)
Please take inspiration from this readme.txt

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

This is the main PHP file of "Font Size" version 1.2.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
80 characters long description:
Font Size WordPress plugin allows you to change the size of basic HTML elements.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected111 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13111111

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.25
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.58KB1.43KB▼ 9.69%
screenshot-1.png17.04KB7.49KB▼ 56.03%