10% simple-zoomer

Code Review | Simple Zoomer

WordPress plugin Simple Zoomer scored10%from 54 tests.

About plugin

  • Plugin page: simple-zoomer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-3.4
  • WordPress version: 6.3.1
  • First release: Sep 17, 2013
  • Latest release: Sep 18, 2013
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: chandra sekhar Gudavalli (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,534 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/simple-zoomer/simple-zoomer.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; simple_zoomer has a deprecated constructor

Server metrics [RAM: ▼1.93MB] [CPU: ▼52.89ms] Passed 4 tests

Analyzing server-side resources used by Simple Zoomer
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.404.07 ▼36.30
Dashboard /wp-admin2.08 ▼1.225.90 ▼46.95
Posts /wp-admin/edit.php2.09 ▼1.276.12 ▼42.09
Add New Post /wp-admin/post-new.php2.08 ▼3.815.40 ▼86.22
Media Library /wp-admin/upload.php2.08 ▼1.154.79 ▼29.50

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
widget_simple_zoomer
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Zoomer
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.21 ▼1.601.61 ▼0.2337.43 ▼7.56
Dashboard /wp-admin2,206 ▲155.91 ▲0.79102.31 ▼1.9340.25 ▼2.07
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0338.74 ▲0.8035.67 ▲4.33
Add New Post /wp-admin/post-new.php1,514 ▼1917.52 ▼5.67671.01 ▼14.1059.77 ▼1.73
Media Library /wp-admin/upload.php1,391 ▲94.19 ▼0.1094.75 ▼4.2841.19 ▼2.64

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > Deprecated in wp-content/plugins/simple-zoomer/simple-zoomer.php+11
    Methods with the same name as their class will not be constructors in a future version of PHP; simple_zoomer has a deprecated constructor
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_simple_zoomer
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/simple-zoomer/simple-zoomer.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: body zoomer, font increase, font size, simple zoomer, font zoom

simple-zoomer/simple-zoomer.php Passed 13 tests

Analyzing the main PHP file in "Simple Zoomer" version 1.0
89 characters long description:
This plugin will enable increase the font size of the page for better reading experience.

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
There were no executable files found in this plugin45 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1141245

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png1.42KB0.95KB▼ 33.04%
screenshot-1.png7.38KB4.45KB▼ 39.61%