90% decfirebase

Code Review | DEC firebase plugin

WordPress plugin DEC firebase plugin scored90%from 54 tests.

About plugin

  • Plugin page: decfirebase
  • Plugin version: 1.0.4
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Dec 9, 2020
  • Latest release: Jan 6, 2021
  • Number of updates: 9
  • Update frequency: every 3.1 days
  • Top authors: donggua211 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /498 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.07MB] [CPU: ▼11.38ms] Passed 4 tests

A check of server-side resources used by DEC firebase plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0542.56 ▼0.90
Dashboard /wp-admin3.40 ▲0.0551.82 ▼17.48
Posts /wp-admin/edit.php3.52 ▲0.1652.54 ▲0.81
Add New Post /wp-admin/post-new.php5.98 ▲0.0989.42 ▼27.96
Media Library /wp-admin/upload.php3.33 ▲0.0941.87 ▲4.25
Settings /wp-admin/admin.php?page=decfirebase_setting3.3034.68
Links /wp-admin/admin.php?page=decfirebase_link3.3033.44
New user notifications /wp-admin/admin.php?page=decfirebase_new_notification3.3135.22
Edit user /wp-admin/admin.php?page=decfirebase_user_edit3.3325.65
User Notifications /wp-admin/admin.php?page=decfirebase_user_notification3.3132.85
Edit user notifications /wp-admin/admin.php?page=decfirebase_edit_notification3.3132.65
Welcome to DEC firebase plugin! /wp-admin/index.php?page=decfirebase-about3.2933.87
Users /wp-admin/admin.php?page=decfirebase3.3133.83

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 17 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for DEC firebase plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.28 ▼0.181.59 ▼0.0442.77 ▲0.37
Dashboard /wp-admin2,232 ▲525.62 ▲0.0484.38 ▼13.4239.20 ▼4.09
Posts /wp-admin/edit.php2,140 ▲401.96 ▼0.0140.47 ▲4.2835.87 ▼0.35
Add New Post /wp-admin/post-new.php1,567 ▲3818.34 ▼4.80676.33 ▲6.9668.72 ▲18.24
Media Library /wp-admin/upload.php1,437 ▲404.11 ▼0.08113.53 ▲0.1247.91 ▲5.58
Settings /wp-admin/admin.php?page=decfirebase_setting8652.0025.3426.14
Links /wp-admin/admin.php?page=decfirebase_link7141.516.8726.41
New user notifications /wp-admin/admin.php?page=decfirebase_new_notification7171.516.6720.18
Edit user /wp-admin/admin.php?page=decfirebase_user_edit7171.336.3717.76
User Notifications /wp-admin/admin.php?page=decfirebase_user_notification7141.516.9124.72
Edit user notifications /wp-admin/admin.php?page=decfirebase_edit_notification7171.127.1616.94
Welcome to DEC firebase plugin! /wp-admin/index.php?page=decfirebase-about8122.0223.3734.55
Users /wp-admin/admin.php?page=decfirebase7141.516.5723.63

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === decfirebase === )
You can take inspiration from this readme.txt

decfirebase/decfirebase.php Passed 13 tests

"DEC firebase plugin" version 1.0.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
19 characters long description:
Dec firebase plugin

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 detected1,191 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP143582391,167
CSS15024

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity7.50
▷ Minimum class complexity6.00
▷ Maximum class complexity9.00
Average method complexity1.87
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods15
▷ Static methods00.00%
▷ Public methods15100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions31
▷ Named functions31100.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
No PNG files were detected