62% aurifox

Code Review | AuriFox

WordPress plugin AuriFox scored62%from 54 tests.

About plugin

  • Plugin page: aurifox
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-5.1.0
  • WordPress version: 6.3.1
  • First release: Jun 30, 2018
  • Latest release: Feb 15, 2019
  • Number of updates: 21
  • Update frequency: every 11.1 days
  • Top authors: aurifox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /626 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.72MB] [CPU: ▼54.06ms] Passed 4 tests

Analyzing server-side resources used by AuriFox
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.27 ▼1.206.15 ▼32.92
Dashboard /wp-admin2.29 ▼1.026.17 ▼46.11
Posts /wp-admin/edit.php2.29 ▼1.078.08 ▼47.31
Add New Post /wp-admin/post-new.php2.29 ▼3.608.66 ▼89.88
Media Library /wp-admin/upload.php2.29 ▼0.947.74 ▼30.41
Settings /wp-admin/edit.php?post_type=aurifox&page=sd_api2.296.63
Reset Data /wp-admin/admin.php?page=reset_data2.297.38
Add Funnels /wp-admin/post-new.php?post_type=aurifox2.297.70
Funnels /wp-admin/edit.php?post_type=aurifox2.297.83
Shortcodes /wp-admin/edit.php?post_type=aurifox&page=aurifox_shortcodes2.296.43

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
aurifox_posts_schema_version
widget_aurifox_widget
db_upgraded
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for AuriFox
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,880 ▲13413.32 ▼0.981.91 ▼0.1146.09 ▲2.27
Dashboard /wp-admin2,243 ▲524.88 ▼0.01100.67 ▼11.4778.76 ▲37.58
Posts /wp-admin/edit.php2,129 ▲402.02 ▲0.0436.15 ▼4.7736.23 ▲2.42
Add New Post /wp-admin/post-new.php1,549 ▲1317.57 ▼5.68755.04 ▲102.1458.37 ▼10.65
Media Library /wp-admin/upload.php1,428 ▲374.15 ▼0.06110.60 ▲10.2282.10 ▲36.29
Settings /wp-admin/edit.php?post_type=aurifox&page=sd_api1,0832.2529.6443.92
Reset Data /wp-admin/admin.php?page=reset_data8252.1920.8728.89
Add Funnels /wp-admin/post-new.php?post_type=aurifox1,0852.4548.0164.81
Funnels /wp-admin/edit.php?post_type=aurifox1,1082.0036.5835.04
Shortcodes /wp-admin/edit.php?post_type=aurifox&page=aurifox_shortcodes1,2792.2630.7342.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • This plugin did not uninstall without warnings or errors
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the myplugin-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • Zombie WordPress options were found after uninstall: 8 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_aurifox_widget
    • aurifox_posts_schema_version
    • widget_recent-posts

Smoke tests 25% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=aurifox&page=aurifox_shortcodes
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the myplugin-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=aurifox&page=aurifox_shortcodes
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the myplugin-font-style handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=aurifox&page=aurifox_shortcodes
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the update-meta handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=aurifox&page=sd_api
    • > Notice in wp-content/plugins/aurifox/pages/settings.php+80
    Undefined index: error
    • > GET request to /wp-admin/post-new.php?post_type=aurifox
    • > Notice in wp-content/plugins/aurifox/aurifox.php+171
    Undefined index: post_type
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/post-new.php?post_type=aurifox
    • > Notice in wp-content/plugins/aurifox/pages/edit.php+10
    Undefined index: post

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 take a closer look at the following
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_count_posts() in wp-content/plugins/aurifox/pages/reset_data.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aurifox/aurifox.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function sanitize_email() in wp-content/plugins/aurifox/pages/shortcodes.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/aurifox/pages/settings.php:41
    • > PHP Warning
      Use of undefined constant AURIFOX_API_URL - assumed 'AURIFOX_API_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/aurifox/pages/settings.php on line 41
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_the_ID() in wp-content/plugins/aurifox/pages/edit.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function delete_option() in wp-content/plugins/aurifox/uninstall.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
    • > GET request to /wp-admin/edit.php?post_type=aurifox&page=sd_api
    • > Other (warning) in unknown
    /wp-admin/edit.php?post_type=aurifox&page=sd_api - Failed to decode downloaded font: /wp-content/plugins/aurifox/fonts/fontawesome-webfont.woff?v=4.2.0
    • > GET request to /wp-admin/edit.php?post_type=aurifox&page=sd_api
    • > Other (warning) in unknown
    /wp-admin/edit.php?post_type=aurifox&page=sd_api - OTS parsing error: invalid sfntVersion: 926364774
    • > GET request to /wp-admin/edit.php?post_type=aurifox&page=sd_api
    • > Network (severe)
    wp-admin/api/getapidetails?email=&auth_token= - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/admin.php?page=reset_data
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=reset_data - Failed to decode downloaded font: /wp-content/plugins/aurifox/fonts/fontawesome-webfont.woff?v=4.2.0
    • > GET request to /wp-admin/admin.php?page=reset_data
    • > Other (warning) in unknown
    /wp-admin/admin.php?page=reset_data - OTS parsing error: invalid sfntVersion: 926364774
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/edit.php?post_type=aurifox&page=aurifox_shortcodes
    • > Network (severe)
    wp-admin/api/funnellist?email=&auth_token= - Failed to load resource: the server responded with a status of 404 (Not Found)
    • > GET request to /wp-admin/post-new.php?post_type=aurifox
    • > Other (warning) in unknown
    /wp-admin/post-new.php?post_type=aurifox - Failed to decode downloaded font: /wp-content/plugins/aurifox/fonts/fontawesome-webfont.woff?v=4.2.0
    • > GET request to /wp-admin/post-new.php?post_type=aurifox
    • > Other (warning) in unknown
    /wp-admin/post-new.php?post_type=aurifox - OTS parsing error: invalid sfntVersion: 926364774
    • > GET request to /wp-admin/edit.php?post_type=aurifox&page=aurifox_shortcodes
    • > Other (warning) in unknown
    /wp-admin/edit.php?post_type=aurifox&page=aurifox_shortcodes - Failed to decode downloaded font: /wp-content/plugins/aurifox/fonts/fontawesome-webfont.woff?v=4.2.0
    • > GET request to /wp-admin/edit.php?post_type=aurifox&page=aurifox_shortcodes
    • > Other (warning) in unknown
    /wp-admin/edit.php?post_type=aurifox&page=aurifox_shortcodes - OTS parsing error: invalid sfntVersion: 926364774

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
6 plugin tags: landing pages, leading pages, internet marketing, optin, aurifox...

aurifox/aurifox.php 92% from 13 tests

The principal PHP file in "AuriFox" v. 1.0.2 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 194 characters long)

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
Success! There were no dangerous files found in this plugin2,129 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP6170201,553
SVG100565
HTML1208
CSS2032
JavaScript1001

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity24.00
▷ Minimum class complexity7.00
▷ Maximum class complexity41.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
5 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.51KB1.42KB▼ 6.33%
images/attention.png0.33KB0.36KB0.00%
images/home.png0.25KB0.23KB▼ 6.32%
images/email.png0.49KB0.47KB▼ 3.41%
images/logo.png2.60KB2.20KB▼ 15.55%