83% top-message-ybus

Code Review | Top Message by Ybus

WordPress plugin Top Message by Ybus scored83%from 54 tests.

About plugin

  • Plugin page: top-message-ybus
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Dec 24, 2015
  • Latest release: Dec 24, 2015
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: fernando.azevedo@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /515 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼11.42ms] Passed 4 tests

Server-side resources used by Top Message by Ybus
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0441.14 ▼0.96
Dashboard /wp-admin3.34 ▼0.0147.44 ▼18.53
Posts /wp-admin/edit.php3.39 ▲0.0347.62 ▼8.09
Add New Post /wp-admin/post-new.php5.92 ▲0.0387.36 ▼14.85
Media Library /wp-admin/upload.php3.27 ▲0.0331.99 ▼4.20

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_top_message_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for Top Message by Ybus
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6214.28 ▲0.041.77 ▼0.0444.16 ▼0.95
Dashboard /wp-admin2,211 ▲415.52 ▼0.0694.93 ▼11.7041.97 ▲3.66
Posts /wp-admin/edit.php2,119 ▲161.99 ▼0.0340.40 ▲5.0935.69 ▼1.67
Add New Post /wp-admin/post-new.php1,539 ▲1122.95 ▼0.30619.18 ▼61.1154.71 ▼3.46
Media Library /wp-admin/upload.php1,413 ▲134.17 ▲0.02102.09 ▲3.1145.70 ▲0.97

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_top_message_widget
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/top-message-ybus/top-message.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === top-message-ybus === )
  • Screenshots: Add images for these screenshots: #1 (This screen shot shows the options the user can set.), #2 (This is the second screen shot to show the plugin in action.)
The official readme.txt is a good inspiration

top-message-ybus/top-message.php 92% from 13 tests

The primary PHP file in "Top Message by Ybus" version 1.0.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("top-message-ybus.php" instead of "top-message.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
There were no executable files found in this plugin119 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP15533101
CSS111818

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.05
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin