72% apm-child

Code Review | APM Child

WordPress plugin APM Child scored72%from 54 tests.

About plugin

  • Plugin page: apm-child
  • Plugin version: 3.6.4
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Apr 24, 2018
  • Latest release: Nov 29, 2023
  • Number of updates: 57
  • Update frequency: every 35.9 days
  • Top authors: nickjamescom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /4,777 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.15MB] [CPU: ▼0.10ms] Passed 4 tests

A check of server-side resources used by APM Child
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1341.94 ▲1.92
Dashboard /wp-admin3.45 ▲0.1546.87 ▼3.25
Posts /wp-admin/edit.php3.57 ▲0.2148.69 ▲0.19
Add New Post /wp-admin/post-new.php6.05 ▲0.16100.95 ▲6.74
Media Library /wp-admin/upload.php3.37 ▲0.1435.19 ▲0.73
Autoresponder Settings /wp-admin/admin.php?page=apm_list_aweber3.3732.86
ClickMagick Settings /wp-admin/admin.php?page=apm_clickmagick3.3434.58
List Solo Ad Orders /wp-admin/admin.php?page=apm_my_solo_income3.3431.60
APM Child /wp-admin/admin.php?page=apm-child3.3432.88
List Direct Mail Orders /wp-admin/admin.php?page=apm_direct_email_order3.3435.87
Post Snippets /wp-admin/admin.php?page=apm_post_snippets3.3431.32
Main Settings /wp-admin/admin.php?page=apm_add_crediantial3.3432.43
Buy Traffic /wp-admin/admin.php?page=apm_dispaly_package3.3434.07
Logout /wp-admin/admin.php?page=apm_logout2.8917.66
Share Your Success /wp-admin/admin.php?page=share_your_success3.3426.22

Server storage [IO: ▲0.60MB] [DB: ▲0.01MB] Passed 3 tests

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 58 new files
Database: 3 new tables, 7 new options
New tables
wp_cso_my_income
wp_cso_options
wp_cso_post_snippets
New WordPress options
db_upgraded
theysaidso_admin_options
apm_subscription_curr_ver
can_compress_scripts
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for APM Child
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,877 ▲11514.36 ▼0.361.73 ▲0.0429.80 ▼12.73
Dashboard /wp-admin2,275 ▲1045.87 ▲0.2196.99 ▲5.1347.94 ▲2.05
Posts /wp-admin/edit.php2,187 ▲842.26 ▲0.3139.94 ▲0.8739.60 ▲5.37
Add New Post /wp-admin/post-new.php1,495 ▼3123.09 ▼0.03535.84 ▼98.3734.04 ▼24.93
Media Library /wp-admin/upload.php1,484 ▲874.40 ▲0.2396.05 ▼3.9739.40 ▼3.41
Autoresponder Settings /wp-admin/admin.php?page=apm_list_aweber9001.7829.0632.76
ClickMagick Settings /wp-admin/admin.php?page=apm_clickmagick8941.8727.7529.49
List Solo Ad Orders /wp-admin/admin.php?page=apm_my_solo_income8971.8428.7930.34
APM Child /wp-admin/admin.php?page=apm-child8941.8128.6928.89
List Direct Mail Orders /wp-admin/admin.php?page=apm_direct_email_order8971.8426.8930.11
Post Snippets /wp-admin/admin.php?page=apm_post_snippets8971.7727.6429.99
Main Settings /wp-admin/admin.php?page=apm_add_crediantial8941.8126.0629.97
Buy Traffic /wp-admin/admin.php?page=apm_dispaly_package8941.8226.4331.29
Logout /wp-admin/admin.php?page=apm_logout8971.8326.8329.23
Share Your Success /wp-admin/admin.php?page=share_your_success8941.8326.9628.06

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=apm_logout
    • > Notice in wp-content/plugins/apm-child/functions/session.php+92
    Undefined index: apm_logged_in
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=apm_logout
    • > Warning in wp-content/plugins/apm-child/functions/session.php+93
    Cookie names must not be empty
    • > GET request to /wp-admin/admin.php?page=apm_logout
    • > Notice in wp-content/plugins/apm-child/functions/session.php+93
    Undefined index: apm_ses_user_login

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
  • 12× GET requests to PHP files return non-empty strings (only 10 are shown):
    • > /wp-content/plugins/apm-child/admin/apm-info.php
    • > /wp-content/plugins/apm-child/admin/apm-subscription-settings.php
    • > /wp-content/plugins/apm-child/income_export.php
    • > /wp-content/plugins/apm-child/admin/solo-orders.php
    • > /wp-content/plugins/apm-child/post-snippet.php
    • > /wp-content/plugins/apm-child/admin/orders.php
    • > /wp-content/plugins/apm-child/admin/plugin-login.php
    • > /wp-content/plugins/apm-child/admin/share-your-success.php
    • > /wp-content/plugins/apm-child/admin/logout.php
    • > /wp-content/plugins/apm-child/admin/direct-email-orders.php
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/apm-child/aweber_api/aweber_entry.php:3
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/apm-child/functions/database-function.php on line 11
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/apm-child/aweber_api/aweber_collection.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/apm-child/optin-monster-settings.php:230
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/apm-child/admin/post-snippets.php on line 133
    • > PHP Fatal error
      Uncaught Error: Interface 'AWeberOAuthAdapter' not found in wp-content/plugins/apm-child/aweber_api/oauth_application.php:57
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/apm-child/functions/database-function.php on line 10
    • > PHP Parse error
      syntax error, unexpected 'else' (T_ELSE) in wp-content/plugins/apm-child/admin/my_income.php on line 353
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/apm-child/functions/database-function.php on line 9
    • > PHP Parse error
      syntax error, unexpected end of file in wp-content/plugins/apm-child/admin/clickmagick.php on line 251

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% 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
8 plugin tags: funnel, sendeagle, optinmonster, getresponse, jvzoo...

apm-child/mc-main.php 92% from 13 tests

The main PHP file in "APM Child" ver. 3.6.4 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("apm-child.php" instead of "mc-main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin10,558 lines of code in 54 files:
LanguageFilesBlank linesComment linesLines of code
PHP502,1523,21610,313
CSS2199158
JavaScript2251287

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity9.12
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity1.73
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes23
▷ Abstract classes00.00%
▷ Concrete classes23100.00%
▷ Final classes00.00%
Methods304
▷ Static methods20.66%
▷ Public methods28393.09%
▷ Protected methods185.92%
▷ Private methods30.99%
Functions30
▷ Named functions30100.00%
▷ Anonymous functions00.00%
Constants9
▷ Global constants9100.00%
▷ Class constants00.00%
▷ Public constants00.00%

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
No PNG files were detected