68% ap-sms-manager

Code Review | AP SMS Manager

WordPress plugin AP SMS Manager scored 68% from 54 tests.

About plugin

  • Plugin page: ap-sms-manager
  • Plugin version: 0.0.6
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.9.3
  • WordPress version: 6.3.1
  • First release: Jul 30, 2020
  • Latest release: May 22, 2022
  • Number of updates: 38
  • Update frequency: every 17.4 days
  • Top authors: appsbay (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,028 total downloads


Plugin footprint 82% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.88MB] [CPU: ▼11.12ms] Passed 4 tests

A check of server-side resources used by AP SMS Manager
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /5.00 ▲1.5453.52 ▲10.37
Dashboard /wp-admin4.86 ▲1.5551.05 ▲6.74
Posts /wp-admin/edit.php4.91 ▲1.5555.39 ▲4.14
Add New Post /wp-admin/post-new.php4.77 ▼1.1144.53 ▼63.22
Media Library /wp-admin/upload.php4.78 ▲1.5543.60 ▲7.88

Server storage [IO: ▲26.25MB] [DB: ▲0.01MB] 67% from 3 tests

Analyzing filesystem and database footprints of this plugin
It is recommended to fix the following issues
  • Total filesystem usage must be limited to 25MB (currently using 26.25MB)
Filesystem: 4,440 new files
Database: 5 new tables, 6 new options
New tables
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for AP SMS Manager
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,267 ▲52120.59 ▲6.212.05 ▲0.2532.86 ▼11.88
Dashboard /wp-admin2,474 ▲28611.23 ▲6.37247.43 ▲139.5747.88 ▲4.90
Posts /wp-admin/edit.php2,789 ▲7117.91 ▲5.91112.51 ▲71.1356.88 ▲18.80
Add New Post /wp-admin/post-new.php1,709 ▲16726.35 ▲8.11695.14 ▲88.4662.79 ▲5.25
Media Library /wp-admin/upload.php1,647 ▲25910.29 ▲6.08162.02 ▲55.4242.20 ▼6.71

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

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

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
Everything seems fine, however this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 15× PHP files output non-empty strings when accessed directly via GET requests (only 10 are shown):
    • > /wp-content/plugins/ap-sms-manager/vendor/illuminate/pagination/resources/views/tailwind.blade.php
    • > /wp-content/plugins/ap-sms-manager/vendor/illuminate/pagination/resources/views/semantic-ui.blade.php
    • > /wp-content/plugins/ap-sms-manager/src/Templates/dashboard.php
    • > /wp-content/plugins/ap-sms-manager/vendor/illuminate/pagination/resources/views/bootstrap-4.blade.php
    • > /wp-content/plugins/ap-sms-manager/vendor/illuminate/pagination/resources/views/simple-tailwind.blade.php
    • > /wp-content/plugins/ap-sms-manager/vendor/symfony/translation/Resources/bin/translation-status.php
    • > /wp-content/plugins/ap-sms-manager/vendor/telnyx/telnyx-php/tests/bootstrap.no_autoload.php
    • > /wp-content/plugins/ap-sms-manager/vendor/illuminate/pagination/resources/views/simple-bootstrap-4.blade.php
    • > /wp-content/plugins/ap-sms-manager/vendor/telnyx/telnyx-php/update_certs.php
    • > /wp-content/plugins/ap-sms-manager/vendor/africastalking/africastalking/example/views/index.php
  • 2490× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Sync/V1/Service/SyncMapList.php:22
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Studio/V1/Flow/Engagement/StepPage.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\InstanceContext' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Taskrouter/V1/Workspace/Worker/WorkersStatisticsContext.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\ListResource' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/Usage/TriggerList.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Chat/V1/ServiceOptions.php:172
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Version' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Preview/Wireless.php:28
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Console\\Input\\ArgvInput' not found in wp-content/plugins/ap-sms-manager/vendor/symfony/console/Input/StringInput.php:25
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Options' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Api/V2010/Account/ConnectAppOptions.php:37
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Studio/V1/FlowPage.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Twilio\\Page' not found in wp-content/plugins/ap-sms-manager/vendor/twilio/sdk/src/Twilio/Rest/Messaging/V1/Service/AlphaSenderPage.php:19

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)
No browser issues were found


Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: sms gateways, sms manager, sms, sms-api

ap-sms-manager/ap-sms-manager.php Passed 13 tests

This is the main PHP file of "AP SMS Manager" version 0.0.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
43 characters long description:
This plugin helps you send bulk sms easily.

Code Analysis 3% from 3 tests

File types 0% from 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Almost there! Just fix the following issues
  • Do not distribute dangerous files with your plugin
    • .crt - Security Certificate in Firefox, IE, Chrome, Safari
      • wp-content/plugins/ap-sms-manager/vendor/telnyx/telnyx-php/data/ca-certificates.crt
    • .bat - Batch File in Windows
      • wp-content/plugins/ap-sms-manager/vendor/nesbot/carbon/bin/carbon.bat
288,175 lines of code in 4,145 files:
LanguageFilesBlank linesComment linesLines of code
Vuejs Component4922123,780
Bourne Shell2305
DOS Batch1004

PHP code 50% from 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
It is recommended to fix the following
  • Please reduce cyclomatic complexity of methods to less than 100 (currently 179)
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity4.63
▷ Minimum class complexity1.00
▷ Maximum class complexity301.00
Average method complexity1.59
▷ Minimum method complexity1.00
▷ Maximum method complexity179.00
Code structure
▷ Abstract classes3079.71%
▷ Concrete classes2,85590.29%
▷ Final classes842.94%
▷ Static methods1,5907.59%
▷ Public methods18,09486.36%
▷ Protected methods2,39711.44%
▷ Private methods4612.20%
▷ Named functions20219.42%
▷ Anonymous functions83880.58%
▷ Global constants6210.53%
▷ Class constants52789.47%
▷ Public constants51196.96%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin