78% wp-article-feedback

Code Review | Article Feedback

WordPress plugin Article Feedback scored78%from 54 tests.

About plugin

  • Plugin page: wp-article-feedback
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.5.3
  • WordPress version: 6.3.1
  • First release: Mar 13, 2016
  • Latest release: Aug 10, 2016
  • Number of updates: 177
  • Update frequency: every 0.9 days
  • Top authors: themeidol (100%)

Code review

54 tests

User reviews

6 reviews

Install metrics

30+ active /2,999 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.33MB] [CPU: ▼27.11ms] Passed 4 tests

This is a short check of server-side resources used by Article Feedback
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.88 ▼0.95
Dashboard /wp-admin3.18 ▼0.1727.96 ▼35.88
Posts /wp-admin/edit.php3.32 ▼0.0431.11 ▼18.50
Add New Post /wp-admin/post-new.php4.72 ▼1.1740.67 ▼48.63
Media Library /wp-admin/upload.php3.27 ▲0.0428.95 ▼5.44
Article Feedback /wp-admin/options-general.php?page=article-feeback-settings3.1626.94

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
feedback_options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Article Feedback: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲17014.07 ▼0.318.57 ▲6.8442.62 ▼0.78
Dashboard /wp-admin2,231 ▲435.04 ▲0.14101.74 ▼20.1636.72 ▼6.38
Posts /wp-admin/edit.php2,116 ▲272.32 ▲0.2735.18 ▼1.7933.40 ▲0.45
Add New Post /wp-admin/post-new.php1,537 ▲423.22 ▲0.07667.76 ▼26.9039.19 ▼19.15
Media Library /wp-admin/upload.php1,407 ▲194.45 ▲0.2598.74 ▼5.9642.40 ▼2.81
Article Feedback /wp-admin/options-general.php?page=article-feeback-settings1,2222.2452.8950.50

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • feedback_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=article-feeback-settings
    • > Notice in wp-content/plugins/wp-article-feedback/plugin.php+113
    Undefined variable: version

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-article-feedback/plugin.php:61

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
7 plugin tags: article, wp article feedback, icons, font-awesome, wordpress article feedback...

wp-article-feedback/plugin.php 85% from 13 tests

The main file in "Article Feedback" v. 1.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-article-feedback.php" instead of "plugin.php")
  • Description: The description should be shorter than 140 characters (currently 200 characters long)

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
There were no executable files found in this plugin3,672 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
CSS47162,434
SVG100655
PHP15575291
PO File29090228
JavaScript210364

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.30
Average class complexity28.00
▷ Minimum class complexity28.00
▷ Maximum class complexity28.00
Average method complexity2.24
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods316.67%
▷ Public methods1688.89%
▷ Protected methods15.56%
▷ Private methods15.56%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/images/csscheckbox_82405711c484478c3bbca93e304dc9c3.png0.49KB0.46KB▼ 5.78%