78% magee-page-builder

Code Review | Magee Page Builder

WordPress plugin Magee Page Builder scored 78% from 54 tests.

About plugin

  • Plugin page: magee-page-builder
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6
  • WordPress version: 5.9.2
  • First release: Sep 18, 2016
  • Latest release: Sep 8, 2016
  • Number of updates: 2
  • Update frequency: every 4.0 days
  • Top authors: magictheme (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,423 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼1.33MB] [CPU: ▼328.50ms] Passed 4 tests

This is a short check of server-side resources used by Magee Page Builder
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.12 ▼0.4022.35 ▼29.18
Dashboard /wp-admin3.03 ▼0.3815.10 ▼19.34
Posts /wp-admin/edit.php3.03 ▼0.6114.92 ▼30.50
Add New Post /wp-admin/post-new.php3.03 ▼3.9415.03 ▼1,234.99
Media Library /wp-admin/upload.php3.03 ▼0.2713.80 ▼16.62
Add Portfolio /wp-admin/post-new.php?post_type=mpb_portfolio3.0316.08
Groups /wp-admin/edit-tags.php?taxonomy=mpb_testimonial_group&post_type=mpb_testimonial3.0315.39
Team /wp-admin/edit.php?post_type=mpb_team3.0314.56
Slides /wp-admin/edit.php?post_type=mpb_slide3.0315.78
Features /wp-admin/edit.php?post_type=mpb_feature3.0314.83
Add Slide /wp-admin/post-new.php?post_type=mpb_slide3.0314.45
Groups /wp-admin/edit-tags.php?taxonomy=mpb_feature_group&post_type=mpb_feature3.0314.74
Clients /wp-admin/edit.php?post_type=mpb_client3.0314.71
Testimonials /wp-admin/edit.php?post_type=mpb_testimonial3.0314.57
Categories /wp-admin/edit-tags.php?taxonomy=mpb_team_group&post_type=mpb_team3.0315.50

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 65 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Magee Page Builder
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /4,407 ▲65317.94 ▲2.1511.11 ▼0.512.58 ▼0.17
Dashboard /wp-admin3,361 ▲5008.09 ▲1.89143.51 ▲12.82167.94 ▲5.76
Posts /wp-admin/edit.php3,192 ▲5015.29 ▲2.0679.35 ▲17.99148.93 ▲13.00
Add New Post /wp-admin/post-new.php1,981 ▲22219.31 ▼3.63408.02 ▼5.77156.60 ▲3.64
Media Library /wp-admin/upload.php1,996 ▲2985.42 ▼0.02111.21 ▼30.32201.13 ▲12.63
Add Portfolio /wp-admin/post-new.php?post_type=mpb_portfolio3,47010.27211.22248.33
Groups /wp-admin/edit-tags.php?taxonomy=mpb_testimonial_group&post_type=mpb_testimonial2,1304.9775.65125.67
Team /wp-admin/edit.php?post_type=mpb_team1,8725.1176.93129.18
Slides /wp-admin/edit.php?post_type=mpb_slide1,8785.1780.61128.48
Features /wp-admin/edit.php?post_type=mpb_feature1,8715.0981.93129.82
Add Slide /wp-admin/post-new.php?post_type=mpb_slide3,46110.21192.68235.49
Groups /wp-admin/edit-tags.php?taxonomy=mpb_feature_group&post_type=mpb_feature2,1254.9676.24122.37
Clients /wp-admin/edit.php?post_type=mpb_client1,8775.1075.75125.98
Testimonials /wp-admin/edit.php?post_type=mpb_testimonial1,8815.1076.18126.68
Categories /wp-admin/edit-tags.php?taxonomy=mpb_team_group&post_type=mpb_team2,1244.9679.50126.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Warning in wp-content/plugins/magee-page-builder/inc/metaboxes/init.php+701
    count(): Parameter must be an array or an object that implements Countable

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
  • 105 occurences, only the last one shown
    • > GET request to /wp-admin/edit-tags.php?taxonomy=mpb_team_group&post_type=mpb_team
    • > Warning in wp-content/plugins/magee-page-builder/inc/metaboxes/init.php+701
    count(): Parameter must be an array or an object that implements Countable

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 take a closer look at the following
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magee-page-builder/inc/post-type/class-team.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magee-page-builder/inc/post-type/class-client.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magee-page-builder/inc/post-type/class-portfolio.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magee-page-builder/inc/post-type/class-slider.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/magee-page-builder/inc/metaboxes/init.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magee-page-builder/inc/post-type/class-testimonial.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/magee-page-builder/inc/metaboxes/metabox-options.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/magee-page-builder/inc/post-type/class-feature.php:6

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% 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: Please add an image for screenshot #1 (Testimonial)
The official readme.txt is a good inspiration

magee-page-builder/magee-page-builder.php Passed 13 tests

This is the main PHP file of "Magee Page Builder" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
19 characters long description:
Magee Page Builder.

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
No dangerous file extensions were detected18,566 lines of code in 35 files:
LanguageFilesBlank linesComment linesLines of code
CSS11719810,411
JavaScript89165684,776
PHP147898392,406
SVG200973

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity32.23
▷ Minimum class complexity2.00
▷ Maximum class complexity136.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity35.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods164
▷ Static methods3823.17%
▷ Public methods16198.17%
▷ Protected methods21.22%
▷ Private methods10.61%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
14 compressed PNG files occupy 0.02MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
inc/metaboxes/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
inc/metaboxes/images/ico-delete.png0.70KB0.72KB0.00%
inc/metaboxes/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
inc/metaboxes/images/ui-bg_glass_75_e6e6e6_1x400.png0.11KB0.14KB0.00%
inc/metaboxes/images/ui-bg_glass_55_fbf9ee_1x400.png0.12KB0.14KB0.00%