84% simple-font-resizer

Code Review | Simple Font Resizer

WordPress plugin Simple Font Resizer scored84%from 54 tests.

About plugin

  • Plugin page: simple-font-resizer
  • Plugin version: 1.02
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.4.1
  • WordPress version: 6.3.1
  • First release: Oct 20, 2022
  • Latest release: Nov 10, 2023
  • Number of updates: 7
  • Update frequency: every 55.2 days
  • Top authors: shahinurislam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /1,316 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
Installer ran successfully

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

An overview of server-side resources used by Simple Font Resizer
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.81 ▼19.90
Dashboard /wp-admin3.31 ▲0.0144.52 ▼0.19
Posts /wp-admin/edit.php3.36 ▲0.0146.20 ▼3.02
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.06 ▲2.01
Media Library /wp-admin/upload.php3.23 ▲0.0132.02 ▼2.89

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Simple Font Resizer
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,962 ▲20013.61 ▼0.7112.12 ▲10.0043.90 ▼12.76
Dashboard /wp-admin2,195 ▲155.53 ▼0.1291.87 ▲0.9539.45 ▼4.43
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0138.33 ▼4.8334.20 ▼3.89
Add New Post /wp-admin/post-new.php1,526 ▼023.16 ▲0.13595.33 ▲8.5155.75 ▲4.42
Media Library /wp-admin/upload.php1,397 ▼34.17 ▼0.03102.62 ▲3.5843.09 ▲1.39

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-font-resizer/index.php:19

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 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: accessibility, font, resizertext, size, sizetext...

simple-font-resizer/index.php 85% from 13 tests

The main PHP script in "Simple Font Resizer" version 1.02 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("simple-font-resizer.php" instead of "index.php")
  • Domain Path: The domain path points to a folder that does not exist ("/lang")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin53 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript14125
PHP101422
CSS1006

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
There were not PNG files found in your plugin