78% advanced-control-manager

Code Review | Advanced Control Manager for WordPress by ItalyStrap

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

About plugin

  • Plugin page: advanced-control-...
  • Plugin version: 2.16.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Jun 28, 2017
  • Latest release: Jul 29, 2023
  • Number of updates: 24
  • Update frequency: every 92.6 days
  • Top authors: overclokk (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /2,685 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲1.61MB] [CPU: ▲3.92ms] Passed 4 tests

A 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.77 ▲1.3145.62 ▲1.47
Dashboard /wp-admin5.02 ▲1.7258.85 ▲0.24
Posts /wp-admin/edit.php5.07 ▲1.7163.05 ▲13.25
Add New Post /wp-admin/post-new.php7.60 ▲1.7294.99 ▲0.70
Media Library /wp-admin/upload.php4.94 ▲1.7252.42 ▲20.15
Settings /wp-admin/admin.php?page=italystrap-settings4.9746.74
ACM by ItalyStrap /wp-admin/admin.php?page=italystrap-dashboard5.7456.34
Twenty Twenty-One License /wp-admin/themes.php?page=twentytwentyone-license4.8844.78

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 1,174 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

A check of browser resources used by Advanced Control Manager for WordPress by ItalyStrap
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,850 ▲11514.48 ▲0.191.55 ▼0.2837.73 ▼10.98
Dashboard /wp-admin2,240 ▲524.89 ▼1.0199.88 ▼13.3639.12 ▼8.30
Posts /wp-admin/edit.php2,123 ▲551.98 ▼0.0140.06 ▲5.5435.02 ▲0.74
Add New Post /wp-admin/post-new.php1,567 ▲5318.23 ▲0.74591.58 ▼85.0167.59 ▲11.88
Media Library /wp-admin/upload.php1,419 ▲314.28 ▲0.0593.78 ▼4.1642.72 ▼0.60
Settings /wp-admin/admin.php?page=italystrap-settings1,4262.2549.3939.14
ACM by ItalyStrap /wp-admin/admin.php?page=italystrap-dashboard3,3821.9835.2846.66
Twenty Twenty-One License /wp-admin/themes.php?page=twentytwentyone-license8291.9625.4125.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 5× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/advanced-control-manager/templates/posts/parts/title.php
    • > /wp-content/plugins/advanced-control-manager/src/Lazyload/asset/video-script.php
    • > /wp-content/plugins/advanced-control-manager/vendor/cmb2/cmb2/apigen/hook-docs.php
    • > /wp-content/plugins/advanced-control-manager/vendor/mobiledetect/mobiledetectlib/export/exportToJSON.php
    • > /wp-content/plugins/advanced-control-manager/src/Lazyload/asset/video-style.php
  • 393× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Zend\\EventManager\\EventManagerInterface' not found in wp-content/plugins/advanced-control-manager/vendor/zendframework/zend-eventmanager/src/EventManager.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/advanced-control-manager/functions/edd.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ProxyManager\\Generator\\MagicMethodGenerator' not found in wp-content/plugins/advanced-control-manager/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/LazyLoadingValueHolder/MethodGenerator/MagicIsset.php:20
    • > PHP Fatal error
      Uncaught Error: Class 'ItalyStrap\\Breadcrumbs\\View' not found in wp-content/plugins/advanced-control-manager/vendor/italystrap/breadcrumbs/src/Breadcrumbs/Json.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'ProxyManager\\Generator\\MagicMethodGenerator' not found in wp-content/plugins/advanced-control-manager/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/AccessInterceptorValueHolder/MethodGenerator/MagicSet.php:22
    • > 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: Interface 'Zend\\Code\\Generator\\GeneratorInterface' not found in wp-content/plugins/advanced-control-manager/vendor/zendframework/zend-code/src/Generator/AbstractGenerator.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Zend\\Code\\Generator\\PropertyGenerator' not found in wp-content/plugins/advanced-control-manager/vendor/ocramius/proxy-manager/src/ProxyManager/ProxyGenerator/LazyLoadingValueHolder/PropertyGenerator/InitializerProperty.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ItalyStrap\\Core\\add_action() in wp-content/plugins/advanced-control-manager/functions/breadcrumbs.php:91
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ItalyStrap\\Core\\esc_attr() in wp-content/plugins/advanced-control-manager/templates/content-vcard.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: popular posts, custom post shortcode, custom post widget, image video lazy loading, twitter bootstrap carousel for gallery

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

Analyzing the main PHP file in "Advanced Control Manager for WordPress by ItalyStrap" version 2.16.0
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("advanced-control-manager.php" instead of "italystrap.php")

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
Success! There were no dangerous files found in this plugin91,664 lines of code in 881 files:
LanguageFilesBlank linesComment linesLines of code
PHP68412,88731,71846,118
PO File12115,28719,60434,636
CSS271,3331,1945,654
JavaScript357921,1873,451
Markdown63210936
SVG370576
JSON420190
Twig1140103

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity9.96
▷ Minimum class complexity1.00
▷ Maximum class complexity199.00
Average method complexity2.90
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces117
Interfaces89
Traits9
Classes485
▷ Abstract classes285.77%
▷ Concrete classes45794.23%
▷ Final classes183.94%
Methods2,803
▷ Static methods29410.49%
▷ Public methods2,32983.09%
▷ Protected methods2559.10%
▷ Private methods2197.81%
Functions201
▷ Named functions11255.72%
▷ Anonymous functions8944.28%
Constants273
▷ Global constants176.23%
▷ Class constants25693.77%
▷ Public constants25097.66%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
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-icons_222222_256x240.png4.27KB4.11KB▼ 3.78%
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/collapsed.png0.24KB0.14KB▼ 41.77%
vendor/cmb2/cmb2/images/ui-bg_glass_95_fef1ec_1x400.png0.12KB0.14KB0.00%
vendor/cmb2/cmb2/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
vendor/cmb2/cmb2/apigen/theme-bootstrap/src/resources/inherit.png0.15KB0.10KB▼ 29.61%