58% azonpost

Code Review | AzonPost

WordPress plugin AzonPost scored58%from 54 tests.

About plugin

  • Plugin page: azonpost
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.2-3.5.1
  • WordPress version: 6.3.1
  • First release: Dec 8, 2012
  • Latest release: Feb 7, 2013
  • Number of updates: 36
  • Update frequency: every 1.7 days
  • Top authors: moch a (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,740 total downloads

Benchmarks

Plugin footprint 48% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▼0.94MB] [CPU: ▼33.17ms] Passed 4 tests

A check of server-side resources used by AzonPost
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.44 ▼0.0237.75 ▼5.93
Dashboard /wp-admin3.00 ▼0.3026.43 ▼22.79
Posts /wp-admin/edit.php3.00 ▼0.3523.74 ▼25.64
Add New Post /wp-admin/post-new.php3.00 ▼2.8822.89 ▼75.12
Media Library /wp-admin/upload.php3.00 ▼0.2324.46 ▼9.12

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: 2 new tables, 12 new options
New tables
wp_jadwal_acara
wp_daftarasin
New WordPress options
ap_dbbacalagi
ap_db_version
widget_theysaidso_widget
ap_dbtogel
can_compress_scripts
db_upgraded
widget_recent-posts
ap_maxload
theysaidso_admin_options
ap_dbtempletpos
...

Browser metrics Passed 4 tests

An overview of browser requirements for AzonPost
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10114.79 ▲0.412.00 ▲0.1546.87 ▼0.01
Dashboard /wp-admin2,205 ▲145.88 ▲0.9996.92 ▼15.1272.73 ▲26.05
Posts /wp-admin/edit.php2,100 ▲82.02 ▲0.0536.86 ▼4.9832.73 ▼3.83
Add New Post /wp-admin/post-new.php1,537 ▲423.16 ▲0.12682.99 ▲37.0849.89 ▼6.66
Media Library /wp-admin/upload.php1,396 ▲54.14 ▼0.0397.95 ▲0.3357.85 ▲14.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • This plugin cannot be uninstalled
    • > Notice in wp-content/plugins/azonpost/azonpost.php+212
    Undefined index: simpenkey
  • The uninstall procedure failed, leaving 2 tables in the database
    • wp_daftarasin
    • wp_jadwal_acara
  • Zombie WordPress options were found after uninstall: 11 options
    • ap_dbtempletpos
    • widget_recent-posts
    • can_compress_scripts
    • ap_maxload
    • widget_theysaidso_widget
    • ap_dbbacalagi
    • ap_dbtogel
    • theysaidso_admin_options
    • ap_dbwilayah
    • widget_recent-comments
    • ...

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/azonpost/ap_bukan.php
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/azonpost/azonpost-about.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/azonpost/azonpost-campaign.php:3
    • > PHP Fatal error
      Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/azonpost/ap_iya.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/azonpost/azonpost.php:97
    • > PHP Notice
      Trying to get property 'prefix' of non-object in wp-content/plugins/azonpost/ap_iya.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/azonpost/azonpost-tools.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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 require images: #1 (AzonPost Admin Panel), #2 (AzonPost Menu Page), #3 (AzonPost Campaign Page), #4 (AzonPost Tools Page), #5 (AzonPost Categories)
The official readme.txt is a good inspiration

azonpost/azonpost.php Passed 13 tests

The main file in "AzonPost" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
85 characters long description:
Simple Amazon auto poster. Atomatically search Amazon products and post to your blog.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,017 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP618552,017

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.55
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
4 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
gambar/ap-150s.png14.57KB5.35KB▼ 63.27%
gambar/ap-20.png0.82KB0.89KB0.00%
gambar/ap-32.png1.35KB1.47KB0.00%
gambar/amazon-buy-button.png5.72KB3.10KB▼ 45.85%