78% azz-anonim-posting

Code Review | Azz Anonim Posting

WordPress plugin Azz Anonim Posting scored 78% from 54 tests.

About plugin

  • Plugin page: azz-anonim-posting
  • Plugin version: 0.9
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.9
  • WordPress version: 6.3.1
  • First release: May 12, 2014
  • Latest release: Jun 28, 2014
  • Number of updates: 4
  • Update frequency: every 12.0 days
  • Top authors: Azzrael (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 794 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.24MB] [CPU: ▼3.94ms] Passed 4 tests

A check of server-side resources used by Azz Anonim Posting
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2436.95 ▼6.94
Dashboard /wp-admin3.54 ▲0.2445.19 ▼3.58
Posts /wp-admin/edit.php3.65 ▲0.3046.57 ▼1.55
Add New Post /wp-admin/post-new.php6.12 ▲0.2485.18 ▼3.68
Media Library /wp-admin/upload.php3.46 ▲0.2336.43 ▲3.84
Anonim Posting /wp-admin/options-general.php?page=azzap-options-page3.4331.62

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 12 new options
New WordPress options
db_upgraded
azzap_user_id
widget_theysaidso_widget
widget_recent-comments
azzap_attach
widget_recent-posts
azzap_content_tmpl
theysaidso_admin_options
can_compress_scripts
azzap_publish_imm
...

Browser metrics Passed 4 tests

An overview of browser requirements for Azz Anonim Posting
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.20 ▼1.181.71 ▼0.2140.98 ▼11.09
Dashboard /wp-admin2,207 ▲165.90 ▲1.0598.76 ▼7.0142.93 ▲3.94
Posts /wp-admin/edit.php2,090 ▲42.00 ▲0.0135.53 ▼0.2333.66 ▲1.98
Add New Post /wp-admin/post-new.php1,540 ▲2623.37 ▲5.65676.19 ▲13.6160.12 ▲7.58
Media Library /wp-admin/upload.php1,392 ▲74.23 ▲0.0293.41 ▼5.7340.01 ▼2.65
Anonim Posting /wp-admin/options-general.php?page=azzap-options-page7482.0523.0721.53

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/azz-anonim-posting/azz_anonim_posting.php
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_users() in wp-content/plugins/azz-anonim-posting/tmpl/adminOptions.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function site_url() in wp-content/plugins/azz-anonim-posting/tmpl/form.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

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
1 plugin tags: post

azz-anonim-posting/azz_anonim_posting.php 92% from 13 tests

The main PHP script in "Azz Anonim Posting" version 0.9 is automatically included on every request by WordPress
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("azz-anonim-posting.php" instead of "azz_anonim_posting.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin3,251 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript41474011,659
PHP81561761,531
CSS15061

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.54
Average class complexity59.80
▷ Minimum class complexity2.00
▷ Maximum class complexity266.00
Average method complexity4.72
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods79
▷ Static methods1924.05%
▷ Public methods2025.32%
▷ Protected methods5468.35%
▷ Private methods56.33%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
There were not PNG files found in your plugin