89% intelliwidget-per-page-featured-posts-and-menus

Code Review | IntelliWidget Per Page Custom Menus and Dynamic Content

WordPress plugin IntelliWidget Per Page Custom Menus and Dynamic Content scored89%from 54 tests.

About plugin

  • Plugin page: intelliwidget-per...
  • Plugin version: 2.3.9.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 6.3.1
  • First release: Apr 22, 2013
  • Latest release: Feb 10, 2020
  • Number of updates: 239
  • Update frequency: every 10.4 days
  • Top authors: lilaeamedia (100%)

Code review

54 tests

User reviews

20 reviews

Install metrics

1,000+ active /78,325 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼2.23ms] Passed 4 tests

This is a short check of server-side resources used by IntelliWidget Per Page Custom Menus and Dynamic Content
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0548.90 ▲7.44
Dashboard /wp-admin3.37 ▲0.0748.38 ▼10.75
Posts /wp-admin/edit.php3.49 ▲0.1349.62 ▲0.11
Add New Post /wp-admin/post-new.php5.97 ▲0.08104.09 ▲1.89
Media Library /wp-admin/upload.php3.29 ▲0.0736.30 ▼0.15

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 7 new options
New WordPress options
widget_intelliwidget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for IntelliWidget Per Page Custom Menus and Dynamic Content
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,791 ▲3014.72 ▲0.091.85 ▲0.3244.01 ▲0.58
Dashboard /wp-admin2,198 ▲185.65 ▼0.0293.61 ▲6.7239.35 ▼4.38
Posts /wp-admin/edit.php2,100 ▼32.00 ▼0.0340.01 ▼0.1234.95 ▼1.53
Add New Post /wp-admin/post-new.php6,665 ▲5,13425.60 ▲2.34866.86 ▲220.2670.68 ▲26.47
Media Library /wp-admin/upload.php1,400 ▼04.26 ▲0.06101.77 ▼1.8843.93 ▲0.09

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
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_intelliwidget
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

SRP Passed 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
You can look at the official readme.txt

intelliwidget-per-page-featured-posts-and-menus/intelliwidget.php 85% from 13 tests

"IntelliWidget Per Page Custom Menus and Dynamic Content" version 2.3.9.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("intelliwidget-per-page-featured-posts-and-menus.php" instead of "intelliwidget.php")
  • Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected5,610 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
PHP362858533,190
PO File22893161,078
JavaScript2114209916
CSS36548426

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity43.85
▷ Minimum class complexity1.00
▷ Maximum class complexity135.00
Average method complexity4.69
▷ Minimum method complexity1.00
▷ Maximum method complexity63.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods151
▷ Static methods53.31%
▷ Public methods151100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions32
▷ Named functions32100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
templates/switch.png0.38KB0.21KB▼ 45.64%