10% text-zoom-premium

Code Review | Text Zoom - WordPress Font Size Plugin by abilitools

WordPress plugin Text Zoom - WordPress Font Size Plugin by abilitools scored10%from 54 tests.

About plugin

  • Plugin page: text-zoom-premium
  • Plugin version: 4.0.1
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.5.1
  • WordPress version: 6.3.1
  • First release: Oct 23, 2019
  • Latest release: Sep 25, 2020
  • Number of updates: 18
  • Update frequency: every 19.4 days
  • Top authors: abilitools (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

400+ active /3,463 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • This plugin did not install gracefully
    • > User notice in wp-content/plugins/text-zoom-premium/includes/utils.php+76
    [Plugin:Text Zoom] Service responded with code 404.

Server metrics [RAM: ▲0.08MB] [CPU: ▼5.78ms] Passed 4 tests

Analyzing server-side resources used by Text Zoom - WordPress Font Size Plugin by abilitools
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0841.31 ▼1.57
Dashboard /wp-admin3.40 ▲0.0952.33 ▼2.32
Posts /wp-admin/edit.php3.51 ▲0.1550.08 ▼3.10
Add New Post /wp-admin/post-new.php5.98 ▲0.0988.05 ▼14.91
Media Library /wp-admin/upload.php3.32 ▲0.0938.95 ▼2.80

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Text Zoom - WordPress Font Size Plugin by abilitools
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,068 ▲30713.93 ▼0.0110.16 ▲8.4458.29 ▲14.99
Dashboard /wp-admin2,203 ▲325.56 ▼0.0987.83 ▼3.6378.74 ▲29.97
Posts /wp-admin/edit.php2,108 ▲51.99 ▲0.0237.92 ▼6.9237.84 ▲0.29
Add New Post /wp-admin/post-new.php1,550 ▲2222.85 ▼0.04760.80 ▲62.6155.36 ▼9.33
Media Library /wp-admin/upload.php1,408 ▲84.23 ▼0.05105.01 ▼1.8058.92 ▲7.40

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-content/plugins/text-zoom-premium/includes/utils.php+76
    [Plugin:Text Zoom] Service responded with code 404.
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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
Almost there! Just fix the following items
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/text-zoom-premium/text-zoom-premium.php
    • > /wp-content/plugins/text-zoom-premium/includes/hooks.php
    • > /wp-content/plugins/text-zoom-premium/includes/utils.php
    • > /wp-content/plugins/text-zoom-premium/includes/script_tag.php
    • > /wp-content/plugins/text-zoom-premium/includes/settings_page.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/text-zoom-premium/includes/plugin-list-item.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
5 plugin tags: text size, font size, font zoom, zoom, accessibility

text-zoom-premium/text-zoom-premium.php Passed 13 tests

The entry point to "Text Zoom - WordPress Font Size Plugin by abilitools" version 4.0.1 is a PHP file that has certain tags in its header comment area
83 characters long description:
Text ZOOM Premium provides your users with the ability to personalize the font size

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,249 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
CSS312510652
PHP710415532
JavaScript101265

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.15
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity2.00
▷ Minimum method complexity2.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods2
▷ Static methods00.00%
▷ Public methods2100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
12 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/abilitools-full-logo-525092c80a16cecd0cf3ca5d9ff1bcf1.png9.40KB10.00KB0.00%
assets/admin/design-options.png28.34KB10.82KB▼ 61.82%
assets/admin/menu-icon.png2.87KB1.76KB▼ 38.67%
assets/none-design-handle-a9ba38402b2004363d3d623f3ae1223d.png3.36KB1.29KB▼ 61.49%
assets/compact-design-handle-0d97919ff58592be701026ca1ba76069.png4.91KB0.73KB▼ 85.07%