83% font-resizer-with-post-reading-time

Code Review | Font Resizer With Post Reading Time [GWE]

WordPress plugin Font Resizer With Post Reading Time [GWE] scored83%from 54 tests.

About plugin

  • Plugin page: font-resizer-with...
  • Plugin version: 1.0.9
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.4.1
  • WordPress version: 6.3.1
  • First release: Aug 12, 2022
  • Latest release: Dec 3, 2023
  • Number of updates: 19
  • Update frequency: every 25.2 days
  • Top authors: mukulwp (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /467 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.06MB] [CPU: ▼6.74ms] Passed 4 tests

A check of server-side resources used by Font Resizer With Post Reading Time [GWE]
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0836.54 ▼8.67
Dashboard /wp-admin3.38 ▲0.0347.72 ▼10.44
Posts /wp-admin/edit.php3.43 ▲0.0748.52 ▲2.84
Add New Post /wp-admin/post-new.php5.98 ▲0.0992.03 ▼5.92
Media Library /wp-admin/upload.php3.31 ▲0.0736.24 ▼1.94
Font Resizer With Post Reading Time /wp-admin/options-general.php?page=fsc3.2835.34

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Font Resizer With Post Reading Time [GWE]
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲5113.20 ▼1.121.53 ▼0.3638.00 ▼7.84
Dashboard /wp-admin2,220 ▲405.96 ▲0.3498.64 ▲7.0144.89 ▲2.44
Posts /wp-admin/edit.php2,130 ▲302.26 ▲0.3241.38 ▲1.1234.58 ▼5.56
Add New Post /wp-admin/post-new.php1,545 ▲1923.28 ▲0.08596.45 ▼14.5933.38 ▼28.58
Media Library /wp-admin/upload.php1,425 ▲344.41 ▲0.2099.64 ▲1.6642.54 ▼0.88
Font Resizer With Post Reading Time /wp-admin/options-general.php?page=fsc1,3272.5765.5928.27

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/font-resizer-with-post-reading-time/index.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 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
These attributes need to be fixed: You can take inspiration from this readme.txt

font-resizer-with-post-reading-time/index.php 85% from 13 tests

Analyzing the main PHP file in "Font Resizer With Post Reading Time [GWE]" version 1.0.9
You should first fix the following items:
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("font-resizer-with-post-reading-time.php" instead of "index.php")

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 detected343 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP13413242
CSS441056
JavaScript24745

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity7.50
▷ Minimum class complexity1.00
▷ Maximum class complexity14.00
Average method complexity2.18
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin