84% farticles

Code Review | Farticles

WordPress plugin Farticles scored84%from 54 tests.

About plugin

  • Plugin page: farticles
  • Plugin version: 1.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-6.1
  • WordPress version: 6.3.1
  • First release: May 11, 2013
  • Latest release: Nov 4, 2022
  • Number of updates: 55
  • Update frequency: every 63.0 days
  • Top authors: numeeja (100%)

Code review

54 tests

User reviews

5 reviews

Install metrics

10+ active /1,957 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.02MB] [CPU: ▼6.75ms] Passed 4 tests

Server-side resources used by Farticles
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.73 ▲1.97
Dashboard /wp-admin3.33 ▲0.0247.60 ▼7.79
Posts /wp-admin/edit.php3.38 ▲0.0248.26 ▼3.38
Add New Post /wp-admin/post-new.php5.91 ▲0.0284.91 ▼17.79
Media Library /wp-admin/upload.php3.25 ▲0.0242.04 ▲4.47

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Farticles
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.111.81 ▲0.2542.23 ▲1.70
Dashboard /wp-admin2,195 ▲185.62 ▼0.0486.05 ▼2.5638.57 ▼5.77
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0337.86 ▼0.8532.73 ▼4.60
Add New Post /wp-admin/post-new.php1,526 ▼617.58 ▼5.69684.83 ▲7.4653.31 ▼2.87
Media Library /wp-admin/upload.php1,403 ▲34.22 ▼0.0799.90 ▼18.7545.50 ▼2.79

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
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

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 items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/farticles/farticles.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
7 plugin tags: fartscroll, gas, flatulence, onion, fart...

farticles/farticles.php Passed 13 tests

The entry point to "Farticles" version 1.2.1 is a PHP file that has certain tags in its header comment area
37 characters long description:
Gives your WordPress site flatulence.

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 plugin330 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
HTML110162
PHP1314788
JavaScript15167
Markdown17013

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.19
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin