90% fabrica-dashboard

Code Review | Fabrica Dashboard

WordPress plugin Fabrica Dashboard scored90%from 54 tests.

About plugin

  • Plugin page: fabrica-dashboard
  • Plugin version: 1.0.17
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.2
  • WordPress version: 6.3.1
  • First release: Apr 10, 2019
  • Latest release: Jun 27, 2023
  • Number of updates: 37
  • Update frequency: every 41.6 days
  • Top authors: yeswework (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /3,620 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
Installer ran successfully

Server metrics [RAM: ▲0.32MB] [CPU: ▲4.49ms] Passed 4 tests

A check of server-side resources used by Fabrica Dashboard
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.68 ▲2.16
Dashboard /wp-admin3.67 ▲0.3654.36 ▼0.76
Posts /wp-admin/edit.php3.85 ▲0.4959.28 ▲9.51
Add New Post /wp-admin/post-new.php6.34 ▲0.4697.79 ▲7.03
Media Library /wp-admin/upload.php3.66 ▲0.4445.45 ▲9.98
Fabrica Dashboard /wp-admin/options-general.php?page=fd-settings3.6337.68

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 32 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Fabrica Dashboard: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,375 ▼37114.19 ▼0.262.22 ▲0.0642.43 ▼1.06
Dashboard /wp-admin1,759 ▼4295.36 ▼0.5487.90 ▼31.5962.75 ▲12.98
Posts /wp-admin/edit.php2,100 ▲142.03 ▼0.0140.48 ▲4.4434.95 ▼1.23
Add New Post /wp-admin/post-new.php1,526 ▲723.17 ▲0.11665.73 ▼7.2652.91 ▼0.65
Media Library /wp-admin/upload.php1,854 ▲4664.38 ▲0.20108.15 ▲11.0746.05 ▲0.97
Fabrica Dashboard /wp-admin/options-general.php?page=fd-settings8892.0230.9029.76

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: activity, security, overview, editorial, content...

fabrica-dashboard/fabrica-dashboard.php Passed 13 tests

The primary PHP file in "Fabrica Dashboard" version 1.0.17 is used by WordPress to initiate all plugin functionality
126 characters long description:
Replaces the WordPress Dashboard to provide a much better overview of content and activity as soon as you log in to your site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin1,851 lines of code in 19 files:
LanguageFilesBlank linesComment linesLines of code
PHP152231771,494
CSS17110286
JavaScript1131452
SVG20019

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity20.50
▷ Minimum class complexity1.00
▷ Maximum class complexity96.00
Average method complexity5.40
▷ Minimum method complexity1.00
▷ Maximum method complexity41.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes14
▷ Abstract classes17.14%
▷ Concrete classes1392.86%
▷ Final classes00.00%
Methods63
▷ Static methods63100.00%
▷ Public methods5688.89%
▷ Protected methods00.00%
▷ Private methods711.11%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
12 PNG files occupy 1.53MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png534.28KB228.71KB▼ 57.19%
assets/screenshot-3.png20.63KB19.85KB▼ 3.79%
assets/screenshot-1.png633.04KB224.94KB▼ 64.47%
assets/screenshot-7.png32.78KB32.12KB▼ 2.00%
assets/screenshot-2.png20.78KB20.38KB▼ 1.97%