84% full-screen-zoomer

Code Review | Full Screen Zoomer

WordPress plugin Full Screen Zoomer scored84%from 54 tests.

About plugin

  • Plugin page: full-screen-zoomer
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1+
  • WordPress version: 6.3.1
  • First release: Dec 2, 2015
  • Latest release: Dec 2, 2015
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: kimannou (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,056 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
Install script ran successfully

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

An overview of server-side resources used by Full Screen Zoomer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.67 ▲0.40
Dashboard /wp-admin3.31 ▲0.0156.67 ▲7.19
Posts /wp-admin/edit.php3.36 ▲0.0148.91 ▼1.83
Add New Post /wp-admin/post-new.php5.89 ▲0.0191.77 ▼4.96
Media Library /wp-admin/upload.php3.24 ▲0.0135.55 ▼0.00
Full secreen zoomer /wp-admin/options-general.php?page=fullscreenzoomer3.2029.84

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

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

Browser metrics Passed 4 tests

Full Screen Zoomer: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲3914.69 ▼0.092.51 ▲0.5743.87 ▼1.83
Dashboard /wp-admin2,196 ▲195.61 ▲0.0197.45 ▲2.9842.44 ▲0.22
Posts /wp-admin/edit.php2,104 ▲71.97 ▲0.0138.60 ▲3.2333.54 ▼3.25
Add New Post /wp-admin/post-new.php1,529 ▲323.55 ▲0.31695.13 ▲3.9254.36 ▼1.74
Media Library /wp-admin/upload.php1,398 ▼24.21 ▲0.0294.84 ▼11.4044.47 ▼2.91
Full secreen zoomer /wp-admin/options-general.php?page=fullscreenzoomer7762.0324.5927.65

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/full-screen-zoomer/full-screen-zoomer.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Tested up to: The plugin version is formatted incorrectly
The official readme.txt might help

full-screen-zoomer/full-screen-zoomer.php Passed 13 tests

The main PHP script in "Full Screen Zoomer" version 1.0 is automatically included on every request by WordPress
17 characters long description:
an awesome zoomer

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
No dangerous file extensions were detected45 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP181141
CSS1003
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
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%
Functions4
▷ Named functions4100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/plus_cursor.png2.36KB1.00KB▼ 57.46%
assets/img/close_cursor.png2.54KB1.09KB▼ 57.03%