10% dreambox

Code Review | DreamBox

WordPress plugin DreamBox scored10%from 54 tests.

About plugin

  • Plugin page: dreambox
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.1
  • WordPress version: 6.3.1
  • First release: Jun 4, 2013
  • Latest release: Jan 12, 2015
  • Number of updates: 11
  • Update frequency: every 53.5 days
  • Top authors: vickysingh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /5,533 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > User deprecated in wp-includes/functions.php+5747
    Function add_option was called with an argument that is deprecated since version 2.3.0 with no alternative available.

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.84ms] Passed 4 tests

A check of server-side resources used by DreamBox
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.91 ▼5.48
Dashboard /wp-admin3.31 ▲0.0143.97 ▼9.18
Posts /wp-admin/edit.php3.36 ▲0.0149.24 ▲2.26
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.16 ▼20.86
Media Library /wp-admin/upload.php3.24 ▲0.0135.93 ▲0.15

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

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

Browser metrics Passed 4 tests

DreamBox: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.27 ▲0.121.79 ▲0.0536.13 ▼1.07
Dashboard /wp-admin2,192 ▲155.61 ▲0.0285.28 ▼1.9536.51 ▼3.07
Posts /wp-admin/edit.php2,100 ▼01.94 ▼0.0836.17 ▲0.1534.80 ▼3.45
Add New Post /wp-admin/post-new.php1,526 ▼923.16 ▲5.03596.17 ▼36.9450.87 ▼27.81
Media Library /wp-admin/upload.php1,397 ▼64.19 ▲0.0398.49 ▼7.0141.61 ▼0.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 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
Please fix the following
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dreambox/dreambox.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dreambox/1.1/dreambox.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Donate link: Invalid url: ""
  • Screenshots: Please add an image for screenshot #1 (2.)
The official readme.txt is a good inspiration

dreambox/dreambox.php Passed 13 tests

Analyzing the main PHP file in "DreamBox" version 2.0
92 characters long description:
Make nice notes, alerts,downloads, important and many more icon with Dream Box in your post.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected95 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
CSS2181249
PHP2121646

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/download.png2.46KB1.63KB▼ 33.81%
images/help.png2.53KB1.72KB▼ 31.88%
1.1/images/help.png2.53KB1.72KB▼ 31.88%
1.1/images/download.png2.46KB1.63KB▼ 33.81%