84% virante-in-depth-article-maker

Code Review | In Depth Articles Generator

WordPress plugin In Depth Articles Generator scored84%from 54 tests.

About plugin

  • Plugin page: virante-in-depth-...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-3.6
  • WordPress version: 6.3.1
  • First release: Aug 19, 2013
  • Latest release: Sep 11, 2013
  • Number of updates: 8
  • Update frequency: every 3.1 days
  • Top authors: virante (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,223 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.37ms] Passed 4 tests

This is a short check of server-side resources used by In Depth Articles Generator
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.71 ▼0.20
Dashboard /wp-admin3.34 ▲0.0343.77 ▼5.68
Posts /wp-admin/edit.php3.39 ▲0.0346.00 ▼3.00
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.65 ▼15.44
Media Library /wp-admin/upload.php3.26 ▲0.0334.27 ▼1.36

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for In Depth Articles Generator
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.31 ▼0.931.77 ▼0.0139.86 ▼4.41
Dashboard /wp-admin2,222 ▲315.79 ▲0.9399.21 ▼4.2340.19 ▼6.91
Posts /wp-admin/edit.php2,105 ▲192.01 ▼0.0437.22 ▼3.2731.78 ▼3.01
Add New Post /wp-admin/post-new.php6,273 ▲4,73825.87 ▲2.67900.45 ▲299.2152.61 ▼3.23
Media Library /wp-admin/upload.php1,404 ▲194.23 ▲0.0497.87 ▼3.1242.65 ▼1.20

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 3× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/virante-in-depth-article-maker/in-depth-articles-generator.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/virante-in-depth-article-maker/inc/class.client.php:45
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/virante-in-depth-article-maker/inc/functions.plugin.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === virante-in-depth-article-maker === )
Please take inspiration from this readme.txt

virante-in-depth-article-maker/in-depth-articles-generator.php 92% from 13 tests

The primary PHP file in "In Depth Articles Generator" version 1.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("virante-in-depth-article-maker.php" instead of "in-depth-articles-generator.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin157 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP53316157

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
PNG images were not found in this plugin