66% wpr-admin-amplify

Code Review | Admin Amplify

WordPress plugin Admin Amplify scored66%from 54 tests.

About plugin

  • Plugin page: wpr-admin-amplify
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.1.1
  • WordPress version: 6.3.1
  • First release: May 2, 2015
  • Latest release: Apr 17, 2019
  • Number of updates: 39
  • Update frequency: every 37.1 days
  • Top authors: dunar21 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,226 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.05MB] [CPU: ▼14.18ms] Passed 4 tests

A check of server-side resources used by Admin Amplify
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.16 ▲0.7040.89 ▼0.83
Dashboard /wp-admin4.06 ▲0.7252.49 ▼11.18
Posts /wp-admin/edit.php4.18 ▲0.8355.49 ▲10.09
Add New Post /wp-admin/post-new.php3.92 ▼1.9741.30 ▼54.81
Media Library /wp-admin/upload.php3.99 ▲0.7646.43 ▲10.84
Forms /wp-admin/edit.php?post_type=wprmakeforms4.0038.43
Pages /wp-admin/edit.php?post_type=wprmakepages4.0037.15
Post Types /wp-admin/edit.php?post_type=wprmakecpts4.0036.89
Admin Amplify /wp-admin/admin.php?page=wpr_admin_amplify3.9433.36
Custom Meta /wp-admin/edit.php?post_type=wprmakemeta4.0037.24

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 41 new files
Database: no new tables, 13 new options
New WordPress options
cpt_amplify_setngs
adminpages_amplify_setngs
db_upgraded
gen_amplify_setngs
widget_recent-posts
usercat_amplify_setngs
can_compress_scripts
widget_theysaidso_widget
postmeta_amplify_setngs
membership_amplify_setngs
...

Browser metrics Passed 4 tests

Checking browser requirements for Admin Amplify
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,943 ▲18213.89 ▼0.404.58 ▲3.0239.39 ▼3.50
Dashboard /wp-admin2,253 ▲765.13 ▼0.5492.42 ▲4.2570.86 ▲35.60
Posts /wp-admin/edit.php2,175 ▲752.41 ▲0.2651.09 ▲15.5238.42 ▲1.43
Add New Post /wp-admin/post-new.php1,740 ▲21422.46 ▼1.23679.21 ▼42.5536.75 ▼28.15
Media Library /wp-admin/upload.php1,468 ▲744.62 ▲0.45115.64 ▲17.0843.84 ▼1.44
Forms /wp-admin/edit.php?post_type=wprmakeforms1,1582.3344.4631.62
Pages /wp-admin/edit.php?post_type=wprmakepages1,1372.3237.5031.71
Post Types /wp-admin/edit.php?post_type=wprmakecpts1,1372.6240.8829.86
Admin Amplify /wp-admin/admin.php?page=wpr_admin_amplify1,0162.4030.1932.35
Custom Meta /wp-admin/edit.php?post_type=wprmakemeta1,1372.6539.3030.83

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 13 options
    • db_upgraded
    • theysaidso_admin_options
    • usercat_amplify_setngs
    • postmeta_amplify_setngs
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • adminpages_amplify_setngs
    • gen_amplify_setngs
    • ...

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wprmakemeta
    • > Notice in wp-content/plugins/wpr-admin-amplify/custtypes.php+192
    Undefined index: id
    • > GET request to /wp-admin/admin.php?page=wpr_admin_amplify
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/admin.php?page=wpr_admin_amplify
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

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
The following issues need your attention
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/wpr-admin-amplify/functions.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpr-admin-amplify/admin_make_cptmaker.php:375
    • > PHP Fatal error
      Uncaught Error: Class 'GenerateSettingsPages' not found in wp-content/plugins/wpr-admin-amplify/usermembershipstuff.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'GenerateCustType' not found in wp-content/plugins/wpr-admin-amplify/membershipmethods.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpr-admin-amplify/admin_make_formmaker.php:103
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpr-admin-amplify/admin_make_pagemaker.php:392
    • > PHP Fatal error
      Uncaught Error: Class 'GenerateCustType' not found in wp-content/plugins/wpr-admin-amplify/usercategory.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpr-admin-amplify/admin_make_metamaker.php:269

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There are user-side issues you should fix
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wprmakemeta
    • > Console-api (warning) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28609 "jQuery.Deferred exception: jQuery(...).live is not a function" "TypeError: jQuery(...).live is not a function\n at HTMLDocument.\u003Canonymous> (/wp-content/plugins/wpr-admin-amplify/js/cusadmin.js?ver=6.3.1:12:25)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1:2:27292)" undefined
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=wprmakemeta
    • > Javascript (severe) in unknown
    /wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils,jquery-ui-core&ver=6.3.1 1:28721 Uncaught TypeError: jQuery(...).live is not a function

Optimizations

Plugin configuration 93% 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:
  • Plugin Name: Please specify the plugin name on the first line ( === wpr-admin-amplify === )
Please take inspiration from this readme.txt

wpr-admin-amplify/functions.php 92% from 13 tests

The main PHP script in "Admin Amplify" version 1.3.0 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wpr-admin-amplify.php" instead of "functions.php")

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
Good job! No executable or dangerous file extensions detected6,924 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP123329404,173
JavaScript32213281,916
CSS46532421
HTML18415414

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity65.00
▷ Minimum class complexity54.00
▷ Maximum class complexity86.00
Average method complexity8.11
▷ Minimum method complexity1.00
▷ Maximum method complexity80.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods27
▷ Static methods00.00%
▷ Public methods2696.30%
▷ Protected methods13.70%
▷ Private methods00.00%
Functions70
▷ Named functions70100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
19 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/jqueryui/images/ui-icons_2e83ff_256x240.png4.44KB4.17KB▼ 6.02%
css/jqueryui/images/ui-bg_inset-hard_100_f5f8f9_1x100.png0.33KB0.13KB▼ 60.36%
css/jqueryui/images/ui-icons_d8e7f3_256x240.png4.44KB4.17KB▼ 6.02%
imgs/grabber.png1.67KB0.69KB▼ 58.84%
css/jqueryui/images/ui-icons_217bc0_256x240.png4.44KB4.17KB▼ 6.02%