84% fv-descriptions

Code Review | FV Descriptions

WordPress plugin FV Descriptions scored 84% from 54 tests.

About plugin

  • Plugin page: fv-descriptions
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.3
  • WordPress version: 6.3.1
  • First release: Oct 26, 2009
  • Latest release: Aug 22, 2023
  • Number of updates: 29
  • Update frequency: every 174.1 days
  • Top authors: FolioVision (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 5,652 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.72ms] Passed 4 tests

An overview of server-side resources used by FV Descriptions
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.57 ▲0.08
Dashboard /wp-admin3.31 ▲0.0145.17 ▼3.73
Posts /wp-admin/edit.php3.36 ▲0.0148.90 ▼1.88
Add New Post /wp-admin/post-new.php5.89 ▲0.0182.83 ▼20.52
Media Library /wp-admin/upload.php3.24 ▲0.0135.19 ▼0.74
FV Descriptions /wp-admin/tools.php?page=fv_descriptions3.2137.32

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
fv_items_per_page
widget_recent-comments
widget_theysaidso_widget
fv_descriptions_field

Browser metrics Passed 4 tests

An overview of browser requirements for FV Descriptions
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.20 ▼1.181.73 ▲0.0643.60 ▲1.56
Dashboard /wp-admin2,210 ▲224.86 ▲0.00107.83 ▲0.5942.17 ▼2.21
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0138.45 ▼2.8834.91 ▼0.00
Add New Post /wp-admin/post-new.php1,517 ▼2517.63 ▼0.53653.89 ▲34.0952.04 ▲1.29
Media Library /wp-admin/upload.php1,395 ▲104.20 ▲0.0095.01 ▼4.8340.79 ▼3.99
FV Descriptions /wp-admin/tools.php?page=fv_descriptions9891.7028.4527.90

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • fv_descriptions_field
    • db_upgraded
    • widget_recent-posts
    • fv_items_per_page
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/fv-descriptions/fv-descriptions.php:32

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Add an image for screenshot #1 (FV Descriptions screen)
You can take inspiration from this readme.txt

fv-descriptions/fv-descriptions.php Passed 13 tests

The main PHP script in "FV Descriptions" version 1.4 is automatically included on every request by WordPress
135 characters long description:
Mass edit descriptions for every post, page or category page. Supports post excerpt, Thesis and All In One SEO meta description fields.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected741 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP121920732
Markdown1709

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png39.96KB16.88KB▼ 57.76%