10% phzoom

Code Review | phZoom Plugin for WordPress

WordPress plugin phZoom Plugin for WordPress scored10%from 54 tests.

About plugin

  • Plugin page: phzoom
  • Plugin version: 1.2.92
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.5.1
  • WordPress version: 6.3.1
  • First release: Oct 19, 2011
  • Latest release: Feb 24, 2013
  • Number of updates: 28
  • Update frequency: every 17.6 days
  • Top authors: BenJemin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /5,166 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin did not install without errors
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.

Server metrics [RAM: ▼1.87MB] [CPU: ▼57.09ms] Passed 4 tests

Server-side resources used by phZoom Plugin for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.346.06 ▼33.93
Dashboard /wp-admin2.14 ▼1.207.15 ▼61.13
Posts /wp-admin/edit.php2.14 ▼1.216.50 ▼45.59
Add New Post /wp-admin/post-new.php2.14 ▼3.747.11 ▼87.70
Media Library /wp-admin/upload.php2.14 ▼1.088.03 ▼28.60

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 20 new options
New WordPress options
phz_11
phz_5
db_upgraded
phz_8
phz_12
phz_9
widget_recent-posts
phz_7
phz_2
phz_6
...

Browser metrics Passed 4 tests

phZoom Plugin for WordPress: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7614.27 ▼0.112.79 ▲1.1039.97 ▼8.62
Dashboard /wp-admin2,199 ▲225.52 ▼0.1486.49 ▼12.3642.99 ▲0.43
Posts /wp-admin/edit.php2,104 ▲12.01 ▼0.0534.25 ▼4.1934.49 ▼0.40
Add New Post /wp-admin/post-new.php1,529 ▼217.54 ▼5.98678.43 ▲21.3053.27 ▲3.24
Media Library /wp-admin/upload.php1,398 ▼24.23 ▲0.0196.24 ▼16.0140.85 ▼5.54
phZoom Options /wp-admin/phzoom.php260.440.0815.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > User deprecated in wp-includes/functions.php+5747
    Function load_plugin_textdomain was called with an argument that is deprecated since version 2.7.0 with no alternative available.
  • This plugin did not uninstall successfully, leaving 20 options in the database
    • widget_recent-comments
    • phz_7
    • widget_theysaidso_widget
    • phz_10
    • phz_1
    • phz_3
    • phz_12
    • phz_9
    • phz_2
    • phz_13
    • ...

Smoke tests 50% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix 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 load_plugin_textdomain() in wp-content/plugins/phzoom/phzoom.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
    • > GET request to /wp-admin/phzoom.php
    • > Network (severe)
    wp-admin/phzoom.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Attributes that need to be fixed:
  • Screenshots: These screenshots require images: #1 (Effect), #2 (Options(if you wordpress is English, English description of this set will be displayed))
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === phzoom === )
The official readme.txt is a good inspiration

phzoom/phzoom.php 92% from 13 tests

The main PHP script in "phZoom Plugin for WordPress" version 1.2.92 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 461 characters long)

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 plugin258 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP1168158
PO File1374088
CSS10111
JavaScript1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.28
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

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.23MB with 0.15MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
zoom.png3.43KB0.69KB▼ 79.90%
screenshot-2.png20.54KB9.96KB▼ 51.53%
screenshot-1.png208.55KB63.66KB▼ 69.47%