84% zeno-font-resizer

Code Review | Zeno Font Resizer

WordPress plugin Zeno Font Resizer scored84%from 54 tests.

About plugin

  • Plugin page: zeno-font-resizer
  • Plugin version: 1.8.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-6.3
  • WordPress version: 6.3.1
  • First release: May 22, 2015
  • Latest release: Aug 7, 2023
  • Number of updates: 117
  • Update frequency: every 25.6 days
  • Top authors: mpol (100%)

Code review

54 tests

User reviews

19 reviews

Install metrics

7,000+ active /94,901 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.10MB] [CPU: ▼4.00ms] Passed 4 tests

An overview of server-side resources used by Zeno Font Resizer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1138.85 ▼3.79
Dashboard /wp-admin3.41 ▲0.1053.37 ▲3.27
Posts /wp-admin/edit.php3.52 ▲0.1649.89 ▼0.67
Add New Post /wp-admin/post-new.php5.99 ▲0.1084.75 ▼10.42
Media Library /wp-admin/upload.php3.33 ▲0.1032.87 ▼1.11
Zeno Font Resizer /wp-admin/options-general.php?page=zeno-font-resizer3.3033.89

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 15 new options
New WordPress options
zeno_font_resizer_resizeSteps
zeno_font_resizer_ownid
zeno_font_resizer_cookieTime
can_compress_scripts
zeno_font_resizer_resizeMax
db_upgraded
widget_zeno_fr_widget
widget_recent-comments
widget_theysaidso_widget
zeno_font_resizer_letter
...

Browser metrics Passed 4 tests

Checking browser requirements for Zeno Font Resizer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,890 ▲15513.70 ▼1.056.47 ▲4.6839.31 ▼4.36
Dashboard /wp-admin2,213 ▲224.87 ▼0.0194.81 ▼9.6938.75 ▼3.26
Posts /wp-admin/edit.php2,090 ▲12.02 ▲0.0134.24 ▼5.0136.91 ▲0.72
Add New Post /wp-admin/post-new.php1,545 ▲3118.43 ▲0.85617.71 ▼78.7060.83 ▲1.44
Media Library /wp-admin/upload.php1,395 ▲74.25 ▼0.0496.47 ▼15.2542.67 ▼4.38
Zeno Font Resizer /wp-admin/options-general.php?page=zeno-font-resizer9682.0724.5527.47

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

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

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
Good news, no errors were detected

SRP 50% from 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
Please take a closer look at the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_option() in wp-content/plugins/zeno-font-resizer/zeno-font-resizer.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: text size, text resizer, accessibility, font size, font resizer

zeno-font-resizer/zeno-font-resizer.php Passed 13 tests

Analyzing the main PHP file in "Zeno Font Resizer" version 1.8.0
91 characters long description:
Zeno Font Resizer allows the visitors of your website to change the font size of your text.

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 plugin486 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP26179312
JavaScript23672174

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions16100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected