84% blog-azaronline-feed

Code Review | Azaronline Blog

WordPress plugin Azaronline Blog scored84%from 54 tests.

About plugin

  • Plugin page: blog-azaronline-feed
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.4
  • WordPress version: 6.3.1
  • First release: Feb 4, 2018
  • Latest release: Apr 26, 2020
  • Number of updates: 8
  • Update frequency: every 101.5 days
  • Top authors: Alireza Nejati (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /731 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
Install script ran successfully

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

Analyzing server-side resources used by Azaronline Blog
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0139.31 ▼2.60
Dashboard /wp-admin3.43 ▲0.13100.45 ▲52.47
Posts /wp-admin/edit.php3.36 ▲0.0045.59 ▼1.95
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.62 ▲1.43
Media Library /wp-admin/upload.php3.23 ▲0.0035.55 ▲2.86

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Azaronline Blog
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,838 ▲10313.66 ▼0.641.66 ▼0.1645.04 ▼3.12
Dashboard /wp-admin2,244 ▲565.85 ▼0.05105.42 ▼2.7839.09 ▼3.25
Posts /wp-admin/edit.php2,089 ▼02.02 ▼0.0036.26 ▼3.5232.02 ▼5.68
Add New Post /wp-admin/post-new.php1,519 ▼2323.58 ▲5.14644.15 ▲38.3849.22 ▲3.59
Media Library /wp-admin/upload.php1,385 ▲34.21 ▲0.0297.28 ▼2.1343.73 ▲0.70

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/blog-azaronline-feed/blog-azaronline-feed.php:17

User-side errors Passed 1 test

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

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: blog, azaronline blog, rss, wordpress, azaronline

blog-azaronline-feed/blog-azaronline-feed.php Passed 13 tests

The entry point to "Azaronline Blog" version 1.1 is a PHP file that has certain tags in its header comment area
19 characters long description:
Show Last posts of

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
Everything looks great! No dangerous files found in this plugin19 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP101219

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.00
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin