72% aweber-dev-facile

Code Review | AWeber Dev Facile

WordPress plugin AWeber Dev Facile scored72%from 54 tests.

About plugin

  • Plugin page: aweber-dev-facile
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.2
  • WordPress version: 6.3.1
  • First release: Apr 30, 2015
  • Latest release: May 11, 2015
  • Number of updates: 11
  • Update frequency: every 1.0 days
  • Top authors: Matthieu20 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,338 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.89ms] Passed 4 tests

An overview of server-side resources used by AWeber Dev Facile
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1139.72 ▼7.05
Dashboard /wp-admin3.41 ▲0.1146.38 ▼2.67
Posts /wp-admin/edit.php3.46 ▲0.1147.56 ▼1.90
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.38 ▲5.18
Media Library /wp-admin/upload.php3.27 ▲0.0435.42 ▲4.07

Server storage [IO: ▲0.16MB] [DB: ▲0.07MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 29 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by AWeber Dev Facile
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.27 ▼1.101.97 ▼0.0538.54 ▼3.37
Dashboard /wp-admin2,213 ▲255.89 ▲1.00104.24 ▼1.8538.73 ▼2.99
Posts /wp-admin/edit.php2,093 ▲42.06 ▲0.0039.50 ▼2.4734.62 ▼1.50
Add New Post /wp-admin/post-new.php1,545 ▲1218.79 ▼4.58600.51 ▼41.4656.53 ▲2.82
Media Library /wp-admin/upload.php1,386 ▼54.21 ▲0.0095.39 ▲0.3540.91 ▼1.45
AWeber DevFacile /wp-admin/api-AW-devfacile.php260.440.0713.85

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 25% 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 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
The following issues need your attention
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/aweber-dev-facile/aweber-devfacile.php
    • > /wp-content/plugins/aweber-dev-facile/languages/strings.php
  • 4× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/aweber-dev-facile/aweber_api/aweber_collection.php:2
    • > PHP Fatal error
      Uncaught Error: Interface 'AWeberOAuthAdapter' not found in wp-content/plugins/aweber-dev-facile/aweber_api/oauth_application.php:57
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberAPIBase' not found in wp-content/plugins/aweber-dev-facile/aweber_api/aweber_response.php:14
    • > PHP Fatal error
      Uncaught Error: Class 'AWeberResponse' not found in wp-content/plugins/aweber-dev-facile/aweber_api/aweber_entry.php:3

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please take a look at the following user-side issues
    • > GET request to /wp-admin/api-AW-devfacile.php
    • > Network (severe)
    wp-admin/api-AW-devfacile.php - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 86% 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
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Administration du plugin Dev Facile.), #2 (Ajout du nombre d'abonnés AWeber d'une ou plusieurs listes dans un Widget.), #3 (Résultat de l'affichage du compteur dans un Widget.)
You can look at the official readme.txt

aweber-dev-facile/aweber-devfacile.php 77% from 13 tests

The entry point to "AWeber Dev Facile" version 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 ("aweber-dev-facile.php" instead of "aweber-devfacile.php")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 461 characters long)
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
Success! There were no dangerous files found in this plugin1,608 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP195521,3031,476
PO File23636132

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity5.79
▷ Minimum class complexity1.00
▷ Maximum class complexity40.00
Average method complexity2.09
▷ Minimum method complexity1.00
▷ Maximum method complexity25.00
Code structure
Namespaces0
Interfaces3
Traits0
Classes26
▷ Abstract classes00.00%
▷ Concrete classes26100.00%
▷ Final classes00.00%
Methods140
▷ Static methods42.86%
▷ Public methods12186.43%
▷ Protected methods1812.86%
▷ Private methods10.71%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png4.28KB1.28KB▼ 70.08%
screenshot-1.png13.83KB6.58KB▼ 52.46%
screenshot-2.png34.26KB12.71KB▼ 62.91%