84% momtaz-nmwdhj

Code Review | Nmwdhj

WordPress plugin Nmwdhj scored84%from 54 tests.

About plugin

  • Plugin page: momtaz-nmwdhj
  • Plugin version: 1.3.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-4.0
  • WordPress version: 6.3.1
  • First release: Jun 25, 2013
  • Latest release: Nov 29, 2015
  • Number of updates: 24
  • Update frequency: every 37.0 days
  • Top authors: alex-ye (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,336 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼3.26ms] Passed 4 tests

Server-side resources used by Nmwdhj
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0741.99 ▼0.30
Dashboard /wp-admin3.37 ▲0.0652.35 ▼3.09
Posts /wp-admin/edit.php3.48 ▲0.1247.09 ▼6.90
Add New Post /wp-admin/post-new.php5.95 ▲0.0693.17 ▲1.33
Media Library /wp-admin/upload.php3.29 ▲0.0634.69 ▼2.74

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Nmwdhj
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲4313.22 ▼1.152.00 ▼0.2746.15 ▲2.36
Dashboard /wp-admin2,200 ▲125.81 ▼0.07113.28 ▲6.0449.32 ▲8.01
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0839.50 ▲1.6332.57 ▼7.04
Add New Post /wp-admin/post-new.php1,540 ▲2123.19 ▲0.01686.35 ▲38.3473.15 ▲11.74
Media Library /wp-admin/upload.php1,388 ▲34.17 ▲0.07105.83 ▼17.3042.84 ▼4.56

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 19× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Nmwdhj\\Views\\View' not found in wp-content/plugins/momtaz-nmwdhj/elements/views/Select.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Nmwdhj\\Views\\View' not found in wp-content/plugins/momtaz-nmwdhj/elements/views/Fieldset.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Nmwdhj\\Elements\\Element' not found in wp-content/plugins/momtaz-nmwdhj/elements/Input.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Nmwdhj\\Elements\\Fieldset' not found in wp-content/plugins/momtaz-nmwdhj/elements/Form.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Nmwdhj\\Views\\View' not found in wp-content/plugins/momtaz-nmwdhj/elements/views/Button.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Nmwdhj\\Elements\\Element' not found in wp-content/plugins/momtaz-nmwdhj/elements/Textarea.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Nmwdhj\\Views\\View' not found in wp-content/plugins/momtaz-nmwdhj/elements/views/Checkboxes.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Nmwdhj\\Views\\View' not found in wp-content/plugins/momtaz-nmwdhj/elements/views/Input.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Nmwdhj\\Views\\View' not found in wp-content/plugins/momtaz-nmwdhj/elements/views/Textarea.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Nmwdhj\\Elements\\Input' not found in wp-content/plugins/momtaz-nmwdhj/elements/Checkboxes.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
6 plugin tags: html, form, options, api, forms...

momtaz-nmwdhj/nmwdhj.php 92% from 13 tests

The primary PHP file in "Nmwdhj" version 1.3.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("momtaz-nmwdhj.php" instead of "nmwdhj.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected1,359 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP248441,2791,359

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity7.21
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces4
Interfaces1
Traits0
Classes27
▷ Abstract classes27.41%
▷ Concrete classes2592.59%
▷ Final classes14.00%
Methods143
▷ Static methods106.99%
▷ Public methods13594.41%
▷ Protected methods85.59%
▷ Private methods00.00%
Functions7
▷ Named functions685.71%
▷ Anonymous functions114.29%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected