83% amplify

Code Review | Amplify

WordPress plugin Amplify scored83%from 54 tests.

About plugin

  • Plugin page: amplify
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.7.1
  • WordPress version: 6.3.1
  • First release: Dec 2, 2013
  • Latest release: Nov 19, 2014
  • Number of updates: 30
  • Update frequency: every 19.6 days
  • Top authors: Betaout (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,746 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.01MB] [CPU: ▼12.55ms] Passed 4 tests

Server-side resources used by Amplify
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0723.29 ▼20.33
Dashboard /wp-admin3.31 ▲0.0144.77 ▼1.06
Posts /wp-admin/edit.php3.37 ▲0.0145.73 ▼4.35
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.37 ▼24.47
Media Library /wp-admin/upload.php3.24 ▲0.0136.76 ▲6.60

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for Amplify
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲20013.65 ▼0.595.25 ▲3.2243.42 ▼3.31
Dashboard /wp-admin2,224 ▲334.91 ▼0.99107.52 ▲4.3572.57 ▲29.13
Posts /wp-admin/edit.php2,107 ▲152.02 ▲0.0037.77 ▼2.8032.89 ▼4.30
Add New Post /wp-admin/post-new.php1,536 ▼623.24 ▲5.05771.30 ▲172.9653.21 ▼6.48
Media Library /wp-admin/upload.php1,394 ▲34.14 ▼0.0898.84 ▼2.3574.85 ▲31.68

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/amplify/includes/html/sociallogin.php:29
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amplify/index.php:53
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/amplify/includes/html/advancesettings.php:21
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/amplify/includes/html/amplify.php:23
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/amplify/includes/html/socialsharing.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (**Amplify** -Feedback widgets, contact us forms etc are seen by your users as one-way conversations. Users after filling up a form are not even sure if they will receive a reply. But with Amplify Connect these feedbacks are turned into conversations and stored in a personalised user-inbox for every user.), #2 (**Pro-active User Engagement**-Less than 0.5% users on any site submits a feedback or fill up a contact form. So instead of waiting for users to contact you, why not greet them with a custom message when then pay you a visit.), #3 (**Easy and yet powerful customer support**-Easily assign these conversations and support requests to team members. Use email forwarding to centralised your support queries via Amplify Connect.), #4 (**additional marketing channel**-An additional marketing channel)
The official readme.txt is a good inspiration

amplify/index.php 92% from 13 tests

The entry point to "Amplify" version 1.0.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("amplify.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,711 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP72661961,312
CSS1551393
JavaScript1006

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity47.00
▷ Minimum class complexity38.00
▷ Maximum class complexity56.00
Average method complexity2.61
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods57
▷ Static methods1221.05%
▷ Public methods5087.72%
▷ Protected methods47.02%
▷ Private methods35.26%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
23 PNG files occupy 1.18MB with 0.72MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png81.93KB26.66KB▼ 67.46%
images/u93_normal.png303.20KB84.03KB▼ 72.29%
images/amp-connect.png7.02KB1.58KB▼ 77.53%
screenshot-2.png150.03KB50.75KB▼ 66.17%
images/u204_normal.png2.54KB1.95KB▼ 23.11%