88% advanced-control-manager

Code Review | Advanced Control Manager for WordPress by ItalyStrap

WordPress plugin Advanced Control Manager for WordPress by ItalyStrap scored 88% from 54 tests.

About plugin

  • Plugin page: advanced-control-...
  • Plugin version: 2.15.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.6
  • WordPress version: 5.9.2
  • First release: Jun 28, 2017
  • Latest release: Oct 22, 2020
  • Number of updates: 19
  • Update frequency: every 63.8 days
  • Top authors: overclokk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active / 2,250 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.58MB] [CPU: ▼274.58ms] Passed 4 tests

This is a short check of server-side resources used by Advanced Control Manager for WordPress by ItalyStrap
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /4.81 ▲1.2964.73 ▲13.17
Dashboard /wp-admin5.07 ▲1.6747.87 ▲14.34
Posts /wp-admin/edit.php5.37 ▲1.7349.88 ▲12.07
Add New Post /wp-admin/post-new.php8.60 ▲1.63113.10 ▼1,135.31
Media Library /wp-admin/upload.php5.02 ▲1.7335.74 ▲11.76
ACM by ItalyStrap /wp-admin/admin.php?page=italystrap-dashboard5.8241.96
Twenty Twenty-Two License /wp-admin/themes.php?page=twentytwentytwo-license4.9935.29
Settings /wp-admin/admin.php?page=italystrap-settings5.0536.35

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 1,275 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Advanced Control Manager for WordPress by ItalyStrap: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,705 ▼1715.70 ▲0.112.00 ▼3.712.39 ▲0.14
Dashboard /wp-admin2,932 ▲716.17 ▼0.14117.94 ▼14.97154.64 ▼4.85
Posts /wp-admin/edit.php2,727 ▲363.23 ▼0.0063.04 ▼5.47139.54 ▼14.66
Add New Post /wp-admin/post-new.php1,686 ▼415.82 ▼4.85404.48 ▼21.21156.74 ▼3.15
Media Library /wp-admin/upload.php1,734 ▲365.49 ▼0.06140.04 ▼15.13186.88 ▲1.78
ACM by ItalyStrap /wp-admin/admin.php?page=italystrap-dashboard4,9812.8672.15194.75
Twenty Twenty-Two License /wp-admin/themes.php?page=twentytwentytwo-license1,0722.7962.31113.67
Settings /wp-admin/admin.php?page=italystrap-settings1,7843.3063.40151.44

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/advanced-control-manager/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
    • > /wp-content/plugins/advanced-control-manager/vendor/cmb2/cmb2/apigen/hook-docs.php
    • > /wp-content/plugins/advanced-control-manager/src/Lazyload/asset/video-style.php
    • > /wp-content/plugins/advanced-control-manager/src/Lazyload/asset/video-script.php
    • > /wp-content/plugins/advanced-control-manager/templates/posts/parts/title.php
  • 400× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Warning
      require(wp-content/plugins/advanced-control-manager/vendor/italystrap/html/vendor/autoload.php): failed to open stream: No such file or directory in wp-content/plugins/advanced-control-manager/vendor/italystrap/html/index.php on line 32
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ItalyStrap\\Admin\\is_admin() in wp-content/plugins/advanced-control-manager/_init-admin.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'ProxyManager\\Factory\\AbstractBaseFactory' not found in wp-content/plugins/advanced-control-manager/vendor/ocramius/proxy-manager/src/ProxyManager/Factory/LazyLoadingGhostFactory.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Block_Type' not found in wp-content/plugins/advanced-control-manager/src/Blocks/Block.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'ProxyManager\\Generator\\MethodGenerator' not found in wp-content/plugins/advanced-control-manager/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/AccessInterceptorValueHolder/MethodGenerator/InterceptedMethod.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Zend\\Code\\Scanner\\DirectoryScanner' not found in wp-content/plugins/advanced-control-manager/vendor/zendframework/zend-code/src/Scanner/AggregateDirectoryScanner.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'ItalyStrap\\Event\\Subscriber_Interface' not found in wp-content/plugins/advanced-control-manager/src/Widgets/Tag_Cloud/Tag_Cloud.php:24
    • > PHP Fatal error
      Uncaught Error: Using $this when not in object context in wp-content/plugins/advanced-control-manager/src/Import_Export/view/italystrap-import-export.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'Zend\\Code\\Annotation\\Parser\\ParserInterface' not found in wp-content/plugins/advanced-control-manager/vendor/zendframework/zend-code/src/Annotation/Parser/DoctrineAnnotationParser.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/advanced-control-manager/vendor/cmb2/cmb2/includes/types/CMB2_Type_Text_Date.php:13

User-side errors Passed 1 test

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


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: custom post widget, popular posts, custom post shortcode, image video lazy loading, twitter bootstrap carousel for gallery

advanced-control-manager/italystrap.php 77% from 13 tests

The primary PHP file in "Advanced Control Manager for WordPress by ItalyStrap" version 2.15.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 163 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("advanced-control-manager.php" instead of "italystrap.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

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
There were no executable files found in this plugin109,027 lines of code in 977 files:
LanguageFilesBlank linesComment linesLines of code
PO File12115,28719,60434,636
Bourne Shell26220

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity9.75
▷ Minimum class complexity1.00
▷ Maximum class complexity199.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
▷ Abstract classes285.67%
▷ Concrete classes46694.33%
▷ Final classes183.86%
▷ Static methods28310.10%
▷ Public methods2,32983.12%
▷ Protected methods2559.10%
▷ Private methods2187.78%
▷ Named functions11354.33%
▷ Anonymous functions9545.67%
▷ Global constants176.23%
▷ Class constants25693.77%
▷ Public constants25097.66%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
32 PNG files occupy 0.05MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
vendor/cmb2/cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-vertical.png0.12KB0.08KB▼ 31.50%
vendor/cmb2/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/tree-hasnext.png0.13KB0.09KB▼ 31.25%