84% post-from-aweber

Code Review | Post from AWeber

WordPress plugin Post from AWeber scored84%from 54 tests.

About plugin

  • Plugin page: post-from-aweber
  • Plugin version: 1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8.1
  • WordPress version: 6.3.1
  • First release: Jul 10, 2020
  • Latest release: Nov 6, 2021
  • Number of updates: 9
  • Update frequency: every 53.8 days
  • Top authors: davidfcarr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,036 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼9.61ms] Passed 4 tests

Analyzing server-side resources used by Post from AWeber
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.26 ▼1.87
Dashboard /wp-admin3.32 ▼0.0244.82 ▼22.49
Posts /wp-admin/edit.php3.37 ▲0.0146.66 ▼4.94
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.06 ▼8.87
Media Library /wp-admin/upload.php3.24 ▲0.0132.85 ▼2.13
AWeber Post /wp-admin/edit.php?page=post_from_aweber_fetch3.2134.21

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Post from AWeber
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.61 ▼0.701.85 ▼0.0141.31 ▼2.40
Dashboard /wp-admin2,207 ▲165.83 ▲0.0296.01 ▼25.5036.83 ▼5.55
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0140.10 ▼1.8434.46 ▼1.83
Add New Post /wp-admin/post-new.php1,536 ▲323.19 ▲0.08644.75 ▼31.0748.80 ▼9.15
Media Library /wp-admin/upload.php1,395 ▲104.25 ▲0.11100.06 ▼3.8342.30 ▼1.02
AWeber Post /wp-admin/edit.php?page=post_from_aweber_fetch7622.0223.7325.61

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-from-aweber/aweber.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: aweber, email

post-from-aweber/aweber.php 85% from 13 tests

The main PHP script in "Post from AWeber" version 1.2 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("post-from-aweber.php" instead of "aweber.php")
  • Description: The description should be shorter than 140 characters (currently 276 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected38 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP110936
Markdown1102

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin