80% science-breeze-widget

Code Review | Science Breeze Widget

WordPress plugin Science Breeze Widget scored80%from 54 tests.

About plugin

  • Plugin page: science-breeze-wi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.5
  • WordPress version: 6.3.1
  • First release: Jan 14, 2013
  • Latest release: Jan 14, 2013
  • Number of updates: 8
  • Update frequency: every 1.9 days
  • Top authors: fida02 (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

10+ active /989 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.91MB] [CPU: ▼52.95ms] Passed 4 tests

Server-side resources used by Science Breeze Widget
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.89 ▼34.89
Dashboard /wp-admin2.10 ▼1.215.89 ▼46.09
Posts /wp-admin/edit.php2.10 ▼1.266.38 ▼40.89
Add New Post /wp-admin/post-new.php2.10 ▼3.796.09 ▼89.91
Media Library /wp-admin/upload.php2.10 ▼1.136.08 ▼27.29

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

Science Breeze Widget: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.55 ▼0.834.63 ▲2.5847.71 ▼2.53
Dashboard /wp-admin2,206 ▲185.85 ▼0.0599.67 ▼3.4439.94 ▼2.58
Posts /wp-admin/edit.php2,089 ▼32.12 ▲0.1432.72 ▼8.4038.28 ▲2.11
Add New Post /wp-admin/post-new.php1,547 ▲1523.43 ▲0.13665.51 ▼4.5252.40 ▼4.57
Media Library /wp-admin/upload.php1,385 ▼34.19 ▼0.0093.10 ▼7.5541.12 ▼0.60

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5453
    Function register_sidebar_widget is deprecated since version 2.8.0! Use wp_register_sidebar_widget() instead.
  • Zombie WordPress options were found after uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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
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 smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
9 plugin tags: plugin, widget, bangladesh, breeze, science-breezecom...

science-breeze-widget/Science Breeze Widget.php 92% from 13 tests

The entry point to "Science Breeze Widget" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("science-breeze-widget.php" instead of "Science Breeze Widget.php")

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
Good job! No executable or dangerous file extensions detected125 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12839125

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png8.18KB4.96KB▼ 39.41%
screenshot-1.png19.99KB11.93KB▼ 40.32%