77% article-forge

Code Review | Article Forge

WordPress plugin Article Forge scored 77% from 54 tests.

About plugin

  • Plugin page: article-forge
  • Plugin version: 1.1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.5.1
  • WordPress version: 6.3.1
  • First release: May 26, 2013
  • Latest release: Jul 6, 2013
  • Number of updates: 33
  • Update frequency: every 1.4 days
  • Top authors: borgboy (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 7,500 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▲0.08ms] Passed 4 tests

Analyzing server-side resources used by Article Forge
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1136.93 ▼6.30
Dashboard /wp-admin3.43 ▲0.1349.72 ▲4.53
Posts /wp-admin/edit.php3.56 ▲0.2048.96 ▲0.71
Add New Post /wp-admin/post-new.php6.02 ▲0.1495.52 ▲9.07
Media Library /wp-admin/upload.php3.36 ▲0.1334.53 ▲1.40
New Article /wp-admin/post-new.php?post_type=articleforge_summary3.6056.53
All Articles /wp-admin/edit.php?post_type=articleforge_summary3.3132.01
Article Forge /wp-admin/options-general.php?page=articleforge3.3030.85
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=articleforge_summary3.3534.44
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=articleforge_summary3.3538.35

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 27 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
articleforge_ver
widget_recent-posts
articleforge_rewrite_rules
articleforge_options
category_children

Browser metrics Passed 4 tests

An overview of browser requirements for Article Forge
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,871 ▲13613.24 ▼1.121.96 ▼0.2041.75 ▼9.09
Dashboard /wp-admin2,245 ▲605.90 ▲1.03105.90 ▼4.7742.17 ▼3.73
Posts /wp-admin/edit.php2,125 ▲361.99 ▼0.0139.31 ▼0.2933.71 ▼3.47
Add New Post /wp-admin/post-new.php1,546 ▲3217.69 ▼5.93656.63 ▲29.6254.27 ▲3.76
Media Library /wp-admin/upload.php1,421 ▲334.23 ▲0.0396.26 ▲1.5144.62 ▲3.24
New Article /wp-admin/post-new.php?post_type=articleforge_summary2,7097.97188.0168.45
All Articles /wp-admin/edit.php?post_type=articleforge_summary1,1811.9330.4131.12
Article Forge /wp-admin/options-general.php?page=articleforge9552.1923.2331.55
Tags /wp-admin/edit-tags.php?taxonomy=post_tag&post_type=articleforge_summary1,3432.1425.2531.05
Categories /wp-admin/edit-tags.php?taxonomy=category&post_type=articleforge_summary1,4792.1426.2931.04

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • The uninstall procedure has failed, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • category_children
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/edit.php?post_type=articleforge_summary
    • > Notice in wp-content/plugins/article-forge/ArticleForge/Admin.php+83
    Trying to get property 'post_type' of non-object
    • > GET request to /wp-admin/options-general.php?page=articleforge
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=articleforge
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ArticleForge\\import() in wp-content/plugins/article-forge/ArticleForge/Content.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function import() in wp-content/plugins/article-forge/content/default/archive-summary.php:10
    • > PHP Notice
      Trying to get property 'post_name' of non-object in wp-content/plugins/article-forge/content/default/article-section.php on line 4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/article-forge/content/default/article-section.php:9
    • > PHP Fatal error
      Uncaught Error: Call to undefined function import() in wp-content/plugins/article-forge/content/default/archive-summary.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/article-forge/content/default/loop-article-summary.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ArticleForge\\Admin\\import() in wp-content/plugins/article-forge/ArticleForge/Admin/Settings.php:4
    • > PHP Notice
      Trying to get property 'post_title' of non-object in wp-content/plugins/article-forge/content/default/article-section.php on line 6
    • > PHP Fatal error
      Uncaught Error: Class 'Articleforge\\Content' not found in wp-content/plugins/article-forge/content/default/search-summary.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function import() in wp-content/plugins/article-forge/content/default/single-summary.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Screenshots: Add an image for screenshot #3 (Screenshot of the plugin display page)
You can look at the official readme.txt

article-forge/main.php 77% from 13 tests

This is the main PHP file of "Article Forge" version 1.1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("article-forge.php" instead of "main.php")
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,711 lines of code in 26 files:
LanguageFilesBlank linesComment linesLines of code
PHP193284751,576
JavaScript41119102
CSS321033

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity12.71
▷ Minimum class complexity1.00
▷ Maximum class complexity58.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces3
Interfaces1
Traits0
Classes16
▷ Abstract classes00.00%
▷ Concrete classes16100.00%
▷ Final classes1168.75%
Methods116
▷ Static methods2723.28%
▷ Public methods10187.07%
▷ Protected methods00.00%
▷ Private methods1512.93%
Functions12
▷ Named functions1083.33%
▷ Anonymous functions216.67%
Constants6
▷ Global constants00.00%
▷ Class constants6100.00%
▷ Public constants6100.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
No PNG files were detected