84% orbisius-simple-notice

Code Review | Orbisius Simple Notice

WordPress plugin Orbisius Simple Notice scored84%from 54 tests.

About plugin

  • Plugin page: orbisius-simple-n...
  • Plugin version: 1.1.2
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-5.6
  • WordPress version: 6.3.1
  • First release: Sep 20, 2013
  • Latest release: Jan 26, 2021
  • Number of updates: 44
  • Update frequency: every 61.0 days
  • Top authors: lordspace (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

200+ active /7,025 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼9.70ms] Passed 4 tests

A check of server-side resources used by Orbisius Simple Notice
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0938.14 ▼4.45
Dashboard /wp-admin3.40 ▲0.0946.64 ▼6.46
Posts /wp-admin/edit.php3.45 ▲0.0946.55 ▼11.99
Add New Post /wp-admin/post-new.php5.97 ▲0.0991.21 ▼15.91
Media Library /wp-admin/upload.php3.32 ▲0.0934.89 ▲1.38
Orbisius Simple Notice /wp-admin/options-general.php?page=orbisius-simple-notice/orbisius-simple-notice.php3.3233.05

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

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

Browser metrics Passed 4 tests

Orbisius Simple Notice: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,910 ▲15313.87 ▼0.524.84 ▲2.9943.27 ▼3.68
Dashboard /wp-admin2,231 ▲405.08 ▲0.19102.64 ▼1.8338.62 ▼5.50
Posts /wp-admin/edit.php2,116 ▲272.32 ▲0.2837.63 ▼8.1932.98 ▼2.81
Add New Post /wp-admin/post-new.php1,533 ▼423.13 ▲4.93576.71 ▼26.9033.60 ▼21.85
Media Library /wp-admin/upload.php1,410 ▲254.54 ▲0.3296.14 ▼5.0243.90 ▲1.35
Orbisius Simple Notice /wp-admin/options-general.php?page=orbisius-simple-notice/orbisius-simple-notice.php2,2268.14200.9987.17

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 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 50% from 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
Please fix the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/orbisius-simple-notice/orbisius-simple-notice.php:29

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

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: There are too many tags (15 tag instead of maximum 10)
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (The Notice shown by the plugin), #2 (Plugin's Settings Page (part 2))
The official readme.txt might help

orbisius-simple-notice/orbisius-simple-notice.php Passed 13 tests

The primary PHP file in "Orbisius Simple Notice" version 1.1.2 is used by WordPress to initiate all plugin functionality
118 characters long description:
This plugin allows you to show a simple notice to alert your users about server maintenance, new product launches etc.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected768 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP211698679
JavaScript3242389

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
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%
Functions12
▷ Named functions12100.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
5 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
i/guNzr.qr.16.png0.39KB0.41KB0.00%
i/guNzr.qr.2.png0.23KB0.23KB0.43%
screenshot-3.png81.37KB32.36KB▼ 60.23%
screenshot-2.png125.92KB39.85KB▼ 68.36%
screenshot-1.png10.01KB4.65KB▼ 53.59%