74% ncg-converter

Code Review | NextCellent Converter

WordPress plugin NextCellent Converter scored74%from 54 tests.

About plugin

  • Plugin page: ncg-converter
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.5
  • WordPress version: 6.3.1
  • First release: Sep 26, 2015
  • Latest release: Apr 1, 2016
  • Number of updates: 10
  • Update frequency: every 19.1 days
  • Top authors: niknetniko (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /765 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▼0.12MB] [CPU: ▼17.20ms] Passed 4 tests

A check of server-side resources used by NextCellent Converter
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▼0.0243.44 ▼9.76
Dashboard /wp-admin3.32 ▲0.0249.55 ▼6.94
Posts /wp-admin/edit.php3.38 ▼0.4748.31 ▼17.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0194.79 ▼35.00
Media Library /wp-admin/upload.php3.25 ▲0.0242.07 ▼0.41

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for NextCellent Converter
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4413.88 ▼0.231.58 ▼0.0440.47 ▼6.61
Dashboard /wp-admin2,214 ▲375.61 ▲0.0894.88 ▼5.8543.49 ▼5.58
Posts /wp-admin/edit.php2,113 ▲131.97 ▼0.0635.48 ▼4.8835.47 ▲1.29
Add New Post /wp-admin/post-new.php1,548 ▲2118.49 ▼4.67608.46 ▼71.7961.67 ▲6.53
Media Library /wp-admin/upload.php1,416 ▲164.11 ▼0.10109.55 ▼0.7147.67 ▲0.26

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The plugin did not uninstall gracefully
    • > Notice in wp-includes/option.php+2520
    Undefined index: nextcellent_converter
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_die() in wp-content/plugins/ncg-converter/ncg-converter.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: nextcellent, convert, shortcode, nextgen

ncg-converter/ncg-converter.php 92% from 13 tests

The main PHP file in "NextCellent Converter" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected490 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP10175417490

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.25
Average class complexity5.88
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods35
▷ Static methods25.71%
▷ Public methods2571.43%
▷ Protected methods00.00%
▷ Private methods1028.57%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin