78% monwoo-web-agency-config

Code Review | Monwoo Web Agency Config

WordPress plugin Monwoo Web Agency Config scored78%from 54 tests.

About plugin

  • Plugin page: monwoo-web-agency...
  • Plugin version: 0.0.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9.2-6.0.2
  • WordPress version: 6.3.1
  • First release: Aug 13, 2022
  • Latest release: Sep 14, 2022
  • Number of updates: 3
  • Update frequency: every 11.3 days
  • Top authors: monwoo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /538 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.71MB] [CPU: ▼1.52ms] Passed 4 tests

This is a short check of server-side resources used by Monwoo Web Agency Config
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.7041.46 ▲6.99
Dashboard /wp-admin4.03 ▲0.6946.77 ▼11.82
Posts /wp-admin/edit.php4.08 ▲0.7347.73 ▲1.74
Add New Post /wp-admin/post-new.php6.79 ▲0.9094.05 ▼2.39
Media Library /wp-admin/upload.php3.96 ▲0.7339.52 ▲6.39
Missions /wp-admin/edit.php?post_type=wa-mission4.0138.97
Settings /wp-admin/admin.php?page=wa-e-config-param-page3.9533.80
Quality review /wp-admin/admin.php?page=wa-e-review-page4.12263.48
Documentation /wp-admin/admin.php?page=wa-e-config-doc-page3.9535.03
Skills /wp-admin/edit-tags.php?post_type=wa-mission&taxonomy=wa-skill4.0159.05

Server storage [IO: ▲17.28MB] [DB: ▲0.10MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 253 new files
Database: no new tables, 9 new options
New WordPress options
wa-skill_children
theysaidso_admin_options
can_compress_scripts
wa_e_review_settings_form_key
widget_recent-comments
db_upgraded
wa_e_review_data_store
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Monwoo Web Agency Config
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,860 ▲11414.29 ▼0.081.67 ▲0.0139.06 ▲2.37
Dashboard /wp-admin2,251 ▲775.58 ▼0.0984.55 ▼7.2183.03 ▲39.79
Posts /wp-admin/edit.php2,153 ▲532.04 ▲0.0534.97 ▼0.0834.46 ▲3.65
Add New Post /wp-admin/post-new.php1,721 ▲19222.45 ▼0.60649.98 ▼30.3367.01 ▲13.86
Media Library /wp-admin/upload.php1,453 ▲534.22 ▼0.0197.17 ▼2.6881.41 ▲36.91
Missions /wp-admin/edit.php?post_type=wa-mission1,2301.9434.4828.98
Settings /wp-admin/admin.php?page=wa-e-config-param-page1,1602.0826.9631.44
Quality review /wp-admin/admin.php?page=wa-e-review-page2,3622.3028.9854.13
Documentation /wp-admin/admin.php?page=wa-e-config-doc-page11,63911.15445.32132.92
Skills /wp-admin/edit-tags.php?post_type=wa-mission&taxonomy=wa-skill2,3642.1628.2536.30

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • wa_e_review_settings_form_key
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • wa-skill_children
    • wa_e_review_data_store
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP 0% 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 fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/monwoo-web-agency-config/assets/backup-bootstrap/test-wa-config/test-secu.php
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_text_field() in wp-content/plugins/monwoo-web-agency-config/head-proxy.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/monwoo-web-agency-config/templates/themes/oceanwp/singular-wa-mission.php:11
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-filesystem-base.php): failed to open stream: No such file or directory in wp-content/plugins/monwoo-web-agency-config/App.php on line 46
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-filesystem-base.php' (include_path='.:/usr/share/php') in wp-content/plugins/monwoo-web-agency-config/App.php on line 46
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/monwoo-web-agency-config/App.php on line 46
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/monwoo-web-agency-config/templates/themes/oceanwp/index-wa-mission.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WA\\Config\\Templates\\Themes\\TwentyTwenty\\date_i18n() in wp-content/plugins/monwoo-web-agency-config/templates/themes/twentytwenty/footer.php:33

User-side errors Passed 1 test

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

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
Please fix the following attributes:
  • Screenshots: These screenshots do not have images: #1 ([Editor] add mission.), #2 ([Editor] add skill.), #3 ([Editor] review panel.), #4 ([Editor] Solve a custom review.), #5 ([Admin] review panel.), #6 ([Admin] ensure custom footer.), #7 ([Admin] WooCommerce order prefix.), #8 ([Admin] Backup all reviews.), #9 ([Admin] Backup before tests launch.), #10 ([Admin] Pre-check end to end test with codeception.), #11 ([Admin] Launch end to end test with codeception.), #12 ([Admin] Block internal requests and debugs), #13 ([WebMaster] Rollback db with phpmyadmin), #14 ([WebMaster] Rollback db with phpmyadmin - specific auth rollback), #15 ([Developer] Deploy a custom static frontend head (tools/wa-deploy.js or ftp)), #16 ([Developer] Publish a static head as a hybrid headless frontend)
You can look at the official readme.txt

monwoo-web-agency-config/wa-config.php 85% from 13 tests

The principal PHP file in "Monwoo Web Agency Config" v. 0.0.3 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("monwoo-web-agency-config.php" instead of "wa-config.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 196 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin101,518 lines of code in 73 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript717,65036088,094
PHP91642,5028,231
CSS3344532,814
PO File36717941,771
HTML35116355
SVG47048233
YAML12520

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity19.07
▷ Minimum class complexity1.00
▷ Maximum class complexity195.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity23.00
Code structure
Namespaces7
Interfaces0
Traits24
Classes11
▷ Abstract classes218.18%
▷ Concrete classes981.82%
▷ Final classes00.00%
Methods236
▷ Static methods166.78%
▷ Public methods16268.64%
▷ Protected methods7230.51%
▷ Private methods20.85%
Functions93
▷ Named functions77.53%
▷ Anonymous functions8692.47%
Constants19
▷ Global constants631.58%
▷ Class constants1368.42%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.47MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/LogoMonwoo-100x100.png17.79KB3.74KB▼ 78.96%
assets/backup-bootstrap/test-wa-config/LogoWebAgencyApp-21x21.png13.77KB1.40KB▼ 89.82%
assets/icon-128x128.png36.85KB6.16KB▼ 83.29%
assets/banner-1544x500.png91.00KB30.09KB▼ 66.93%
assets/LogoWAConfig-21x21.png17.32KB1.17KB▼ 93.23%