83% maaq-website-manager

Code Review | Maaq - Manage your WordPress websites

WordPress plugin Maaq - Manage your WordPress websites scored83%from 54 tests.

About plugin

  • Plugin page: maaq-website-manager
  • Plugin version: 0.0.1
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.3
  • WordPress version: 6.3.1
  • First release: Oct 1, 2023
  • Latest release: Oct 1, 2023
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: infomaaq (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /23 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: ▲0.00MB] [CPU: ▼3.84ms] Passed 4 tests

An overview of server-side resources used by Maaq - Manage your WordPress websites
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0041.33 ▲0.75
Dashboard /wp-admin3.34 ▲0.0052.02 ▲4.55
Posts /wp-admin/edit.php3.39 ▲0.0048.29 ▼1.70
Add New Post /wp-admin/post-new.php5.92 ▲0.0095.65 ▼13.90
Media Library /wp-admin/upload.php3.26 ▲0.0033.50 ▼0.51

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

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

Browser metrics Passed 4 tests

Maaq - Manage your WordPress websites: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.26 ▼1.354.35 ▲2.7342.25 ▲1.24
Dashboard /wp-admin2,206 ▲155.79 ▼0.1198.87 ▼11.0739.46 ▼4.38
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0240.73 ▲4.7234.20 ▲1.21
Add New Post /wp-admin/post-new.php1,542 ▲918.36 ▼4.76623.57 ▼25.5164.57 ▲18.37
Media Library /wp-admin/upload.php1,388 ▲34.21 ▲0.0395.24 ▼5.9343.91 ▼0.63

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 165× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maaq-website-manager/includes/endpoints/summary/get.php:25
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/maaq-website-manager/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/maaq-website-manager/vendor/chillerlan/php-qrcode/examples/../vendor/autoload.php' (include_path='.:/usr/share/php') in wp-content/plugins/maaq-website-manager/vendor/chillerlan/php-qrcode/examples/svgMeltedModules.php on line 15
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/maaq-website-manager/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_ListTable.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/maaq-website-manager/includes/plugin/plugin_links.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/maaq-website-manager/vendor/woocommerce/action-scheduler/classes/abstracts/ActionScheduler_Abstract_RecurringSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/maaq-website-manager/includes/endpoints/health/get.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'chillerlan\\QRCodeTest\\Output\\QROutputTestAbstract' not found in wp-content/plugins/maaq-website-manager/vendor/chillerlan/php-qrcode/tests/Output/QRImagickTest.php:23
    • > PHP Fatal error
      Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 8.0.0". You are running 7.4.16. in wp-content/plugins/maaq-website-manager/vendor/composer/platform_check.php on line 24
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/maaq-website-manager/vendor/woocommerce/action-scheduler/lib/cron-expression/CronExpression_HoursField.php:8

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: ""
The official readme.txt is a good inspiration

maaq-website-manager/maaq.php 85% from 13 tests

Analyzing the main PHP file in "Maaq - Manage your WordPress websites" version 0.0.1
The following require your attention:
  • 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: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("maaq-website-manager.php" instead of "maaq.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected19,270 lines of code in 262 files:
LanguageFilesBlank linesComment linesLines of code
PHP2305,17715,94716,856
XML830161,189
Markdown101270444
JSON400341
YAML5524205
HTML1280151
SVG421884

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity11.09
▷ Minimum class complexity1.00
▷ Maximum class complexity131.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces17
Interfaces7
Traits5
Classes185
▷ Abstract classes2714.59%
▷ Concrete classes15885.41%
▷ Final classes5937.34%
Methods1,215
▷ Static methods16913.91%
▷ Public methods86371.03%
▷ Protected methods25520.99%
▷ Private methods977.98%
Functions57
▷ Named functions3968.42%
▷ Anonymous functions1831.58%
Constants189
▷ Global constants42.12%
▷ Class constants18597.88%
▷ Public constants16086.49%

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
16 PNG files occupy 0.15MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
vendor/chillerlan/php-qrcode/tests/samples/numeric.png0.38KB0.21KB▼ 44.59%
vendor/chillerlan/php-qrcode/tests/samples/rotated.png0.77KB0.24KB▼ 69.34%
vendor/chillerlan/php-qrcode/tests/samples/example_svg_dots.png44.02KB12.18KB▼ 72.34%
vendor/chillerlan/php-qrcode/tests/samples/kanji.png0.37KB0.20KB▼ 47.52%
vendor/chillerlan/php-qrcode/tests/samples/smol.png0.38KB0.21KB▼ 44.99%