10% admission-appmanager

Code Review | Admission AppManager

WordPress plugin Admission AppManager scored 10% from 54 tests.

About plugin

  • Plugin page: admission-appmanager
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7.3
  • WordPress version: 5.9.2
  • First release: Apr 10, 2017
  • Latest release: Apr 10, 2017
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: zvijerka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,483 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Deprecated in wp-content/plugins/admission-appmanager/includes/class-admission-app-manager-activator.php+38
    Non-static method Admission_App_Manager_Activator::add_roles() should not be called statically

Server metrics [RAM: ▲1.48MB] [CPU: ▼280.37ms] Passed 4 tests

Analyzing server-side resources used by Admission AppManager
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.98 ▲1.4779.74 ▲28.98
Dashboard /wp-admin4.81 ▲1.4036.17 ▲2.21
Posts /wp-admin/edit.php5.17 ▲1.5350.21 ▲13.86
Add New Post /wp-admin/post-new.php8.48 ▲1.51111.31 ▼1,141.96
Media Library /wp-admin/upload.php4.88 ▲1.5835.24 ▲4.41
Add New /wp-admin/post-new.php?post_type=type5.3851.34
Add New /wp-admin/post-new.php?post_type=combination5.3951.73
All Document Types /wp-admin/edit.php?post_type=type4.9238.97
Add New /wp-admin/post-new.php?post_type=school5.6356.09
All Schools /wp-admin/edit.php?post_type=school4.9245.79
All Application Requirements /wp-admin/edit.php?post_type=combination4.9237.34
Settings /wp-admin/admin.php?page=aam_settings4.8635.50
Location /wp-admin/edit-tags.php?taxonomy=location&post_type=school4.8836.71
Intake /wp-admin/edit-tags.php?taxonomy=intake&post_type=school4.8838.59

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 682 new files
Database: no new tables, 2 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Admission AppManager
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,032 ▼72215.78 ▼0.3810.22 ▲4.592.51 ▼0.12
Dashboard /wp-admin1,994 ▼8675.88 ▼0.27109.46 ▼27.23170.39 ▲9.90
Posts /wp-admin/edit.php2,901 ▲2103.31 ▲0.0665.02 ▲0.45142.08 ▼3.67
Add New Post /wp-admin/post-new.php1,804 ▲4416.42 ▼6.26433.57 ▲5.32151.65 ▼6.24
Media Library /wp-admin/upload.php1,911 ▲2165.50 ▼0.01144.63 ▼4.62182.30 ▼38.88
Add New /wp-admin/post-new.php?post_type=type1,7712.2139.42113.72
Add New /wp-admin/post-new.php?post_type=combination1,7632.2138.15116.09
All Document Types /wp-admin/edit.php?post_type=type1,5773.2163.12114.94
Add New /wp-admin/post-new.php?post_type=school4,8534.23120.84166.57
All Schools /wp-admin/edit.php?post_type=school1,6113.2264.03112.27
All Application Requirements /wp-admin/edit.php?post_type=combination1,5843.2161.99113.11
Settings /wp-admin/admin.php?page=aam_settings1,2962.7654.21121.84
Location /wp-admin/edit-tags.php?taxonomy=location&post_type=school1,8312.8157.38111.07
Intake /wp-admin/edit-tags.php?taxonomy=intake&post_type=school1,8312.8256.93109.85

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall without warnings or errors
    • > Deprecated in wp-content/plugins/admission-appmanager/includes/class-admission-app-manager-deactivator.php+33
    Non-static method Admission_App_Manager_Deactivator::remove_roles() should not be called statically
  • This plugin does not fully uninstall, leaving 2 options in the database
    • recovery_mode_email_last_sent
    • aam_settings

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
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=combination
    • > Compile error in wp-content/plugins/admission-appmanager/includes/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Checkbox.php+35
    Declaration of CMB2_Type_Checkbox::render() must be compatible with CMB2_Type_Text::render($args = Array)

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
  • 1× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/admission-appmanager/public/partials/adminssion-app-manager-public-display.php
  • 128× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'Symfony\\Component\\Translation\\Exception\\ExceptionInterface' not found in wp-content/plugins/admission-appmanager/includes/vendor/symfony/translation/Exception/NotFoundResourceException.php:19
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/admission-appmanager/includes/vendor/symfony/translation/Tests/MessageCatalogueTest.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Loader\\ArrayLoader' not found in wp-content/plugins/admission-appmanager/includes/vendor/symfony/translation/Loader/FileLoader.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/admission-appmanager/includes/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_File_List.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Taxonomy_Base' not found in wp-content/plugins/admission-appmanager/includes/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Taxonomy_Multicheck.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Type_Base' not found in wp-content/plugins/admission-appmanager/includes/vendor/webdevstudios/cmb2/includes/types/CMB2_Type_Textarea.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'CMB2_Hookup_Base' not found in wp-content/plugins/admission-appmanager/includes/vendor/webdevstudios/cmb2/includes/CMB2_hookup.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'Symfony\\Component\\Translation\\Dumper\\FileDumper' not found in wp-content/plugins/admission-appmanager/includes/vendor/symfony/translation/Dumper/IniFileDumper.php:21
    • > PHP Fatal error
      Trait 'League\\Csv\\Config\\Controls' not found in wp-content/plugins/admission-appmanager/includes/vendor/league/csv/src/AbstractCsv.php on line 34
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/admission-appmanager/includes/vendor/symfony/translation/Tests/Loader/XliffFileLoaderTest.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 90% 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
3 plugin tags: admissions consulting, document management, project management

admission-appmanager/admission-app-manager.php 77% from 13 tests

"Admission AppManager" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("admission-appmanager.php" instead of "admission-app-manager.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 150 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis 97% from 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
Everything looks great! No dangerous files found in this plugin78,390 lines of code in 490 files:
LanguageFilesBlank linesComment linesLines of code
PO File12613,78917,88231,581
Qt Linguist10010

PHP code 50% from 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Please tend to the following items
  • Cyclomatic complexity of methods has to be reduced to less than 100 (currently 155)
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity12.67
▷ Minimum class complexity1.00
▷ Maximum class complexity157.00
Average method complexity2.66
▷ Minimum method complexity1.00
▷ Maximum method complexity155.00
Code structure
▷ Abstract classes158.02%
▷ Concrete classes17291.98%
▷ Final classes10.58%
▷ Static methods18012.13%
▷ Public methods1,24884.10%
▷ Protected methods15610.51%
▷ Private methods805.39%
▷ Named functions8078.43%
▷ Anonymous functions2221.57%
▷ Global constants610.34%
▷ Class constants5289.66%
▷ Public constants52100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
16 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/arrow.png0.21KB0.16KB▼ 23.29%
includes/vendor/webdevstudios/cmb2/images/ui-icons_454545_256x240.png4.27KB4.11KB▼ 3.78%
admin/js/multiple-select-master/multiple-select.png3.30KB0.62KB▼ 81.18%
includes/vendor/webdevstudios/cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
includes/vendor/webdevstudios/cmb2/images/ui-icons_cd0a0a_256x240.png4.27KB4.11KB▼ 3.78%