83% mynx-page-builder

Code Review | Mynx Page Builder

WordPress plugin Mynx Page Builder scored83%from 54 tests.

About plugin

  • Plugin page: mynx-page-builder
  • Plugin version: 0.27.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.9
  • WordPress version: 6.3.1
  • First release: Nov 15, 2018
  • Latest release: Nov 22, 2019
  • Number of updates: 12
  • Update frequency: every 31.1 days
  • Top authors: azexo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

200+ active /1,339 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.20MB] [CPU: ▲0.84ms] Passed 4 tests

This is a short check of server-side resources used by Mynx Page Builder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.67 ▲0.2143.50 ▲1.30
Dashboard /wp-admin3.50 ▲0.2055.18 ▲0.01
Posts /wp-admin/edit.php3.62 ▲0.2650.83 ▲0.63
Add New Post /wp-admin/post-new.php6.09 ▲0.2098.19 ▲6.29
Media Library /wp-admin/upload.php3.43 ▲0.2039.46 ▲1.40

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 219 new files
Database: no new tables, 10 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
azh-library
widget_recent-comments
azh-content-settings
azh-all-settings
azh-get-content-scripts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Mynx Page Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,921 ▲13514.05 ▼0.3110.28 ▲8.2748.32 ▲0.44
Dashboard /wp-admin2,237 ▲345.88 ▲0.00105.36 ▼3.4044.18 ▲2.69
Posts /wp-admin/edit.php2,116 ▲162.00 ▲0.0037.17 ▼1.8838.35 ▼3.05
Add New Post /wp-admin/post-new.php1,554 ▲622.98 ▼0.15606.28 ▼43.8762.32 ▲13.37
Media Library /wp-admin/upload.php1,410 ▲104.13 ▼0.16116.75 ▲9.1651.07 ▲2.20

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • azh-library
    • azh-all-settings
    • widget_recent-posts
    • azh-content-settings
    • azh-get-content-scripts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, 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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mynx-page-builder/azh_mynx.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (15 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

mynx-page-builder/azh_mynx.php 85% from 13 tests

This is the main PHP file of "Mynx Page Builder" version 0.27.8, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("mynx-page-builder.php" instead of "azh_mynx.php")

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
Everything looks great! No dangerous files found in this plugin67,457 lines of code in 184 files:
LanguageFilesBlank linesComment linesLines of code
CSS7646,24028,447
JavaScript173,3814,18915,852
LESS821625110,499
HTML96207,596
SVG520453,794
PHP1104331,122
JSON220106
PO File1121941

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
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%
Functions45
▷ Named functions4395.56%
▷ Anonymous functions24.44%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
14 compressed PNG files occupy 0.28MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
azh/images/mynx/logo-2.png5.62KB5.88KB0.00%
azh/images/mynx/marker.png0.67KB0.85KB0.00%
azh/images/mynx/logo.png2.06KB1.84KB▼ 10.58%
azh/images/mynx/woman-1.png172.96KB183.13KB0.00%
azh/images/mynx/5stars-gray.png0.77KB0.76KB▼ 1.28%