90% geniipress-auto-pinch-zoom

Code Review | GeniiPress Auto Pinch Zoom

WordPress plugin GeniiPress Auto Pinch Zoom scored90%from 54 tests.

About plugin

  • Plugin page: geniipress-auto-p...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0.3-5.0.3
  • WordPress version: 6.3.1
  • First release: Feb 20, 2019
  • Latest release: Feb 20, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: geniipress (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /5,177 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

An overview of server-side resources used by GeniiPress Auto Pinch Zoom
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0037.74 ▲1.41
Dashboard /wp-admin3.31 ▼0.0446.39 ▼13.52
Posts /wp-admin/edit.php3.36 ▲0.0042.71 ▼1.78
Add New Post /wp-admin/post-new.php5.89 ▲0.0075.42 ▼16.85
Media Library /wp-admin/upload.php3.23 ▲0.0035.39 ▼0.84

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for GeniiPress Auto Pinch Zoom
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2914.30 ▼0.101.68 ▲0.0244.69 ▲4.57
Dashboard /wp-admin2,198 ▲245.58 ▼0.0683.09 ▼2.6540.09 ▼0.94
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0734.64 ▼4.9239.36 ▲0.52
Add New Post /wp-admin/post-new.php1,526 ▼022.94 ▼0.63638.08 ▼26.6448.80 ▼2.66
Media Library /wp-admin/upload.php1,400 ▼34.16 ▼0.0795.22 ▼8.5245.78 ▼2.13

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

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

Smoke tests Passed 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 Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

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 Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: mobile pinch zoom, pinchzoom, pinch zoom, zoom, mobile pinchzoom...

geniipress-auto-pinch-zoom/geniipress-auto-pinch-zoom.php Passed 13 tests

"GeniiPress Auto Pinch Zoom" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
67 characters long description:
Enables pinch zoom functionality for mobile devices, automagically.

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
Success! There were no dangerous files found in this plugin10 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP122010

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.67
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%
Functions1
▷ Named functions1100.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
No PNG images were found in this plugin