78% auphonic-importer

Code Review | Auphonic Importer

WordPress plugin Auphonic Importer scored78%from 54 tests.

About plugin

  • Plugin page: auphonic-importer
  • Plugin version: 1.5.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.0
  • WordPress version: 6.3.1
  • First release: Aug 21, 2013
  • Latest release: Jul 13, 2017
  • Number of updates: 21
  • Update frequency: every 67.9 days
  • Top authors: steppek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,494 total downloads

Benchmarks

Plugin footprint 82% 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.02MB] [CPU: ▼4.28ms] Passed 4 tests

A check of server-side resources used by Auphonic Importer
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.44 ▲0.65
Dashboard /wp-admin3.33 ▲0.0251.51 ▼3.18
Posts /wp-admin/edit.php3.38 ▲0.0252.94 ▲4.28
Add New Post /wp-admin/post-new.php5.91 ▲0.0288.08 ▼16.13
Media Library /wp-admin/upload.php3.25 ▲0.0236.69 ▲1.55
Auphonic Importer /wp-admin/options-general.php?page=ai-settings3.1928.54

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

Analyzing filesystem and database footprints of this plugin
Please fix the following
  • You have illegally modified 1 file (4.00KB) outside of "wp-content/plugins/auphonic-importer/" and "wp-content/uploads/"
    • (new file) wp-content/mgd_mirror/mgd_maximinodotpy-gitdown-test-repository
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

A check of browser resources used by Auphonic Importer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.23 ▼1.151.66 ▼0.0942.65 ▲1.68
Dashboard /wp-admin2,225 ▲224.88 ▼0.1495.37 ▼19.0536.37 ▼10.79
Posts /wp-admin/edit.php2,083 ▼172.03 ▼0.0236.53 ▼4.6235.60 ▼0.86
Add New Post /wp-admin/post-new.php1,548 ▲2223.20 ▲5.76643.52 ▼54.6553.39 ▼8.98
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.0399.14 ▼3.8241.63 ▼4.47
Auphonic Importer /wp-admin/options-general.php?page=ai-settings7812.0523.9125.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=ai-settings
    • > Notice in wp-content/plugins/auphonic-importer/auphonic-importer.php+153
    Trying to access array offset on value of type bool
    • > GET request to /wp-admin/options-general.php?page=ai-settings
    • > 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/options-general.php?page=ai-settings
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% 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
The following issues need your attention
  • 3× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/auphonic-importer/init.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/auphonic-importer/settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/auphonic-importer/auphonic-importer.php:136

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === auphonic-importer === )
Please take inspiration from this readme.txt

auphonic-importer/auphonic-importer.php Passed 13 tests

The principal PHP file in "Auphonic Importer" v. 1.5.1 is loaded by WordPress automatically on each request
99 characters long description:
This plugin will import the productions that come through from Auphonic.com as posts into WordPress

Code Analysis Passed 3 tests

File types Passed 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
No dangerous file extensions were detected240 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33624240

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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