10% page-manager-for-elementor

Code Review | Page Manager for Elementor

WordPress plugin Page Manager for Elementor scored10%from 54 tests.

About plugin

  • Plugin page: page-manager-for-...
  • Plugin version: 2.0.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Dec 21, 2022
  • Latest release: Feb 17, 2023
  • Number of updates: 40
  • Update frequency: every 1.5 days
  • Top authors: honzat (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,631 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Notice in wp-content/plugins/page-manager-for-elementor/elementor_page_switcher.php+591
    Undefined index: action

Server metrics [RAM: ▼1.49MB] [CPU: ▼49.37ms] Passed 4 tests

Server-side resources used by Page Manager for Elementor
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.49 ▼0.978.69 ▼39.46
Dashboard /wp-admin2.52 ▼0.799.25 ▼40.69
Posts /wp-admin/edit.php2.52 ▼0.8410.55 ▼33.94
Add New Post /wp-admin/post-new.php2.52 ▼3.378.39 ▼83.39
Media Library /wp-admin/upload.php2.52 ▼0.719.68 ▼25.93
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius2.529.55
Page Manager for Elementor /wp-admin/admin.php?page=pagemanager2.529.27

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 201 new files
Database: no new tables, 10 new options
New WordPress options
fs_debug_mode
can_compress_scripts
widget_recent-posts
db_upgraded
fs_active_plugins
theysaidso_admin_options
fs_gdpr
widget_recent-comments
widget_theysaidso_widget
fs_accounts

Browser metrics Passed 4 tests

A check of browser resources used by Page Manager for Elementor
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,914 ▲1,16814.22 ▼0.1641.37 ▲39.0647.06 ▲3.03
Dashboard /wp-admin2,721 ▲5365.22 ▼0.62117.84 ▲18.7547.70 ▲8.01
Posts /wp-admin/edit.php2,598 ▲5062.32 ▲0.2956.29 ▲18.7044.52 ▲8.56
Add New Post /wp-admin/post-new.php1,959 ▲42523.78 ▲0.81692.90 ▲4.1966.44 ▲13.54
Media Library /wp-admin/upload.php1,903 ▲5184.52 ▲0.30118.42 ▼10.3055.58 ▲4.25
Freemius Debug [v.2.5.3] /wp-admin/admin.php?page=freemius1,7302.3361.4651.19
Page Manager for Elementor /wp-admin/admin.php?page=pagemanager1,8542.2767.9884.12

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Notice in wp-content/plugins/page-manager-for-elementor/elementor_page_switcher.php+591
    Undefined index: action
  • Zombie WordPress options detected upon uninstall: 10 options
    • theysaidso_admin_options
    • widget_recent-posts
    • fs_gdpr
    • widget_theysaidso_widget
    • fs_debug_mode
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • fs_accounts
    • fs_active_plugins

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pagemanager
    • > Notice in wp-content/plugins/page-manager-for-elementor/elementor_page_switcher.php+614
    Undefined index: action

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_upload_dir() in wp-content/plugins/page-manager-for-elementor/includes/constants.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: duplicate page, page manager, manager, duplicate, elementor

page-manager-for-elementor/elementor_page_switcher.php 77% from 13 tests

"Page Manager for Elementor" version 2.0.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("page-manager-for-elementor.php" instead of "elementor_page_switcher.php")
  • Description: The description should be shorter than 140 characters (currently 147 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected35,446 lines of code in 155 files:
LanguageFilesBlank linesComment linesLines of code
PHP1198,05517,17433,438
JavaScript428293965
CSS1311814790
SVG1905253

PHP code 50% from 2 tests

A short review of cyclomatic complexity and code structure
These items need your attention
  • Cyclomatic complexity of classes should be reduced to less than 1000 (currently 3,089)
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity89.32
▷ Minimum class complexity1.00
▷ Maximum class complexity3,089.00
Average method complexity4.60
▷ Minimum method complexity1.00
▷ Maximum method complexity94.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes50
▷ Abstract classes24.00%
▷ Concrete classes4896.00%
▷ Final classes00.00%
Methods1,257
▷ Static methods19315.35%
▷ Public methods87569.61%
▷ Protected methods171.35%
▷ Private methods36529.04%
Functions117
▷ Named functions117100.00%
▷ Anonymous functions00.00%
Constants154
▷ Global constants10769.48%
▷ Class constants4730.52%
▷ Public constants47100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.05MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
freemius/assets/img/theme-icon.png10.97KB5.78KB▼ 47.37%
freemius/assets/img/pagemanager.png26.17KB8.44KB▼ 67.74%
freemius/assets/img/plugin-icon.png9.16KB5.26KB▼ 42.58%