84% cfs-auto-loop-label

Code Review | CFS Auto Loop Label

WordPress plugin CFS Auto Loop Label scored84%from 54 tests.

About plugin

  • Plugin page: cfs-auto-loop-label
  • Plugin version: 1.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Aug 30, 2016
  • Latest release: Mar 8, 2018
  • Number of updates: 16
  • Update frequency: every 34.8 days
  • Top authors: felipeelia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

300+ active /1,682 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
The plugin installed gracefully, with no errors

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

Server-side resources used by CFS Auto Loop Label
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0034.13 ▼10.05
Dashboard /wp-admin3.31 ▲0.0044.17 ▼7.66
Posts /wp-admin/edit.php3.36 ▲0.0048.78 ▼7.80
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.08 ▼12.85
Media Library /wp-admin/upload.php3.23 ▲0.0033.47 ▼3.23

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

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

Browser metrics Passed 4 tests

Checking browser requirements for CFS Auto Loop Label
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.74 ▲0.401.52 ▼0.5840.22 ▼4.09
Dashboard /wp-admin2,198 ▲215.57 ▼0.0095.68 ▼8.1942.48 ▼1.21
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0138.99 ▲2.8634.80 ▼2.29
Add New Post /wp-admin/post-new.php1,528 ▲223.28 ▼0.33601.77 ▼115.4152.63 ▼14.40
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.03102.22 ▼9.7642.75 ▼9.08

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cfs-auto-loop-label/index.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cfs-auto-loop-label/trunk/index.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: auto loop label, loop label, custom field suite, cfs

cfs-auto-loop-label/index.php 92% from 13 tests

The principal PHP file in "CFS Auto Loop Label" v. 1.0.2 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cfs-auto-loop-label.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected67 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript12035
PO File14625
PHP1197

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code1.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
No PNG images were found in this plugin