10% zoomph

Code Review | Zoomph

WordPress plugin Zoomph scored10%from 54 tests.

About plugin

  • Plugin page: zoomph
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.2.2
  • WordPress version: 6.3.1
  • First release: Jun 4, 2015
  • Latest release: Jun 4, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: jseaman (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,009 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
The following installer errors require your attention
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/zoomph/zoomph.php+27
    Methods with the same name as their class will not be constructors in a future version of PHP; ZoomphWidget has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼53.71ms] Passed 4 tests

Analyzing server-side resources used by Zoomph
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.07 ▼1.394.76 ▼36.24
Dashboard /wp-admin2.09 ▼1.216.42 ▼46.50
Posts /wp-admin/edit.php2.09 ▼1.265.45 ▼39.45
Add New Post /wp-admin/post-new.php2.09 ▼3.795.74 ▼92.66
Media Library /wp-admin/upload.php2.09 ▼1.145.33 ▼31.45

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_zoomph
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Zoomph
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5414.74 ▲0.341.78 ▼0.5445.53 ▼0.77
Dashboard /wp-admin2,206 ▲185.91 ▲0.01108.04 ▲7.3041.76 ▲4.61
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0134.31 ▼7.7832.49 ▼3.04
Add New Post /wp-admin/post-new.php1,533 ▲523.34 ▲5.19594.02 ▼23.9149.67 ▼5.14
Media Library /wp-admin/upload.php1,388 ▲64.24 ▲0.0794.50 ▼4.9243.41 ▲1.03

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
    • > Deprecated in wp-content/plugins/zoomph/zoomph.php+27
    Methods with the same name as their class will not be constructors in a future version of PHP; ZoomphWidget has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_zoomph
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/zoomph/zoomph.php

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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 to be fixed:
  • Tags: There are too many tags (13 tag instead of maximum 10)
The official readme.txt is a good inspiration

zoomph/zoomph.php Passed 13 tests

The principal PHP file in "Zoomph" v. 1.0 is loaded by WordPress automatically on each request
55 characters long description:
Easily embed Zoomph visuals within your Wordpress site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected134 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1271986
JavaScript13048

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity4.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%
Functions5
▷ Named functions5100.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
PNG images were not found in this plugin