78% nextgen-to-wiziapp

Code Review | NextGEN to WiziApp - Integrate image galleries & albums to your WiziApp powered iPhone App

WordPress plugin NextGEN to WiziApp - Integrate image galleries & albums to your WiziApp powered iPhone App scored78%from 54 tests.

About plugin

  • Plugin page: nextgen-to-wiziapp
  • Plugin version: 1.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.2.1
  • WordPress version: 6.3.1
  • First release: Jun 16, 2012
  • Latest release: Jun 16, 2012
  • Number of updates: 8
  • Update frequency: N/A
  • Top authors: mayerz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /3,517 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼8.15ms] Passed 4 tests

Server-side resources used by NextGEN to WiziApp - Integrate image galleries & albums to your WiziApp powered iPhone App
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0541.80 ▼1.12
Dashboard /wp-admin3.37 ▲0.0251.57 ▼14.01
Posts /wp-admin/edit.php3.42 ▲0.0649.96 ▼2.54
Add New Post /wp-admin/post-new.php5.95 ▲0.0688.72 ▼12.24
Media Library /wp-admin/upload.php3.29 ▲0.0642.21 ▼3.82

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

NextGEN to WiziApp - Integrate image galleries & albums to your WiziApp powered iPhone App: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.24 ▼0.151.83 ▲0.1145.35 ▲5.46
Dashboard /wp-admin2,195 ▲215.48 ▼0.1098.69 ▲11.1742.78 ▲1.92
Posts /wp-admin/edit.php2,103 ▼01.98 ▲0.0039.04 ▲0.9735.69 ▲0.87
Add New Post /wp-admin/post-new.php1,526 ▼022.82 ▼0.26628.54 ▼31.3754.32 ▼1.93
Media Library /wp-admin/upload.php1,400 ▲34.15 ▼0.0398.49 ▼8.4043.35 ▼4.90

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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 take a closer look at the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/nextgen-to-wiziapp/views/activation_notice.php
    • > /wp-content/plugins/nextgen-to-wiziapp/views/styles_javascripts.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/nextgen-to-wiziapp/nextgen_to_wiziapp.php:339

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Screenshots: Add an image for screenshot #1 (Nextgen to Wiziapp plugin)
Please take inspiration from this readme.txt

nextgen-to-wiziapp/nextgen_to_wiziapp.php 85% from 13 tests

"NextGEN to WiziApp - Integrate image galleries & albums to your WiziApp powered iPhone App" version 1.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("nextgen-to-wiziapp.php" instead of "nextgen_to_wiziapp.php")
  • Plugin Name: A shorter plugin name is better (currently 90 characters long instead of max. 70)

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
No dangerous file extensions were detected423 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP35136318
JavaScript17065
CSS16040

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity56.00
▷ Minimum class complexity56.00
▷ Maximum class complexity56.00
Average method complexity6.50
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods880.00%
▷ Protected methods00.00%
▷ Private methods220.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants120.00%
▷ Class constants480.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.37MB with 0.25MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png374.97KB123.62KB▼ 67.03%