90% fluid-customizer

Code Review | Fluid Customizer

WordPress plugin Fluid Customizer scored 90% from 54 tests.

About plugin

  • Plugin page: fluid-customizer
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.4
  • WordPress version: 6.3.1
  • First release: Dec 1, 2015
  • Latest release: Dec 1, 2015
  • Number of updates: 7
  • Update frequency: N/A
  • Top authors: cameronjonesweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active / 1,008 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Fluid Customizer
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.05 ▼2.11
Dashboard /wp-admin3.31 ▲0.0144.05 ▼0.39
Posts /wp-admin/edit.php3.36 ▲0.0045.54 ▼2.00
Add New Post /wp-admin/post-new.php5.89 ▲0.0098.95 ▲5.05
Media Library /wp-admin/upload.php3.23 ▲0.0034.87 ▲4.37

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Fluid Customizer
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.23 ▼1.071.72 ▼0.3341.13 ▼10.64
Dashboard /wp-admin2,209 ▲214.85 ▼0.97101.67 ▲1.1339.91 ▲3.47
Posts /wp-admin/edit.php2,089 ▲32.00 ▼0.0140.11 ▲4.1935.61 ▲0.87
Add New Post /wp-admin/post-new.php1,533 ▼923.19 ▲4.88603.09 ▼27.9755.21 ▼6.70
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.14100.10 ▲2.3340.88 ▼5.13

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

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: customizer, customize, admin

fluid-customizer/fluid-customizer.php Passed 13 tests

"Fluid Customizer" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
117 characters long description:
Preview your site for a variety of different devices by resizing your Customizer sidebar with a simple click and drag

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected66 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1141823
CSS20022
JavaScript21021

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin