84% very-fresh-lexicon

Code Review | Flexicon - Very fresh Lexicon

WordPress plugin Flexicon - Very fresh Lexicon scored84%from 54 tests.

About plugin

  • Plugin page: very-fresh-lexicon
  • Plugin version: 1.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9.0-5.7
  • WordPress version: 6.3.1
  • First release: Dec 1, 2020
  • Latest release: Aug 30, 2021
  • Number of updates: 7
  • Update frequency: every 39.6 days
  • Top authors: v90freshlabs (85.71%)freshlabs (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /523 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
Installer ran successfully

Server metrics [RAM: ▲0.09MB] [CPU: ▲2.76ms] Passed 4 tests

A check of server-side resources used by Flexicon - Very fresh Lexicon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0942.81 ▲2.03
Dashboard /wp-admin3.39 ▲0.0959.48 ▲10.20
Posts /wp-admin/edit.php3.48 ▲0.1355.15 ▲8.00
Add New Post /wp-admin/post-new.php5.99 ▲0.1087.80 ▼5.22
Media Library /wp-admin/upload.php3.31 ▲0.0841.43 ▲6.21
Einstellungen /wp-admin/edit.php?post_type=flex&page=flex_settings3.3236.19
Alle Begriffe /wp-admin/edit.php?post_type=flex3.3439.65
Neuer Begriff /wp-admin/post-new.php?post_type=flex3.4355.11
Kategorien /wp-admin/edit-tags.php?taxonomy=categories&post_type=flex3.3038.39

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
Very_Fresh_Lexicon_url
Very_Fresh_Lexicon_css

Browser metrics Passed 4 tests

This is an overview of browser requirements for Flexicon - Very fresh Lexicon
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,924 ▲18913.69 ▼1.064.91 ▲3.1737.95 ▼0.74
Dashboard /wp-admin2,247 ▲564.85 ▼1.0498.97 ▼13.5069.41 ▲28.19
Posts /wp-admin/edit.php2,127 ▲352.00 ▼0.0437.74 ▼3.7933.77 ▼2.22
Add New Post /wp-admin/post-new.php1,553 ▲3323.11 ▼0.22749.61 ▲68.3659.00 ▲4.09
Media Library /wp-admin/upload.php1,426 ▲414.12 ▲0.0197.00 ▼15.0676.31 ▲29.14
Einstellungen /wp-admin/edit.php?post_type=flex&page=flex_settings8922.0324.7231.40
Alle Begriffe /wp-admin/edit.php?post_type=flex1,1051.9531.0631.06
Neuer Begriff /wp-admin/post-new.php?post_type=flex2,3867.62169.60128.93
Kategorien /wp-admin/edit-tags.php?taxonomy=categories&post_type=flex1,3032.1425.8431.05

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • Very_Fresh_Lexicon_url
    • widget_theysaidso_widget
    • widget_recent-posts
    • Very_Fresh_Lexicon_css
    • can_compress_scripts

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/very-fresh-lexicon/admin/partials/very-fresh-lexicon-admin-display.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_header() in wp-content/plugins/very-fresh-lexicon/public/partials/archive-flex.php:3

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 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Donate link: Invalid url: "freshlabs.de"
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Example of a custom Very fresh Lexicon), #2 (Example of the custom CSS editor in Very fresh Lexicon), #3 (The Very fresh Lexicon shortcode generator)
You can take inspiration from this readme.txt

very-fresh-lexicon/very-fresh-lexicon.php Passed 13 tests

Analyzing the main PHP file in "Flexicon - Very fresh Lexicon" version 1.0.5
78 characters long description:
Flexicon is a simple yet customizable plugin to create a lexicon in wordpress.

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
Success! There were no dangerous files found in this plugin764 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
PHP13220634473
CSS2199268
JavaScript262723

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.13
Average class complexity1.88
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.23
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods31
▷ Static methods39.68%
▷ Public methods2683.87%
▷ Protected methods00.00%
▷ Private methods516.13%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/img/icon.png0.47KB0.47KB0.00%
icon-256x256.png4.35KB4.54KB0.00%
admin/img/logo.png13.54KB7.34KB▼ 45.80%