84% popup-message

Code Review | Popup Message

WordPress plugin Popup Message scored84%from 54 tests.

About plugin

  • Plugin page: popup-message
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.2
  • WordPress version: 6.3.1
  • First release: Apr 14, 2015
  • Latest release: Apr 20, 2015
  • Number of updates: 3
  • Update frequency: every 2.0 days
  • Top authors: sohelamin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,155 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

Server-side resources used by Popup Message
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0240.06 ▼0.92
Dashboard /wp-admin3.33 ▼0.0249.73 ▼10.43
Posts /wp-admin/edit.php3.38 ▲0.0250.98 ▼2.03
Add New Post /wp-admin/post-new.php5.91 ▲0.0287.75 ▲2.72
Media Library /wp-admin/upload.php3.25 ▲0.0238.77 ▲1.27
Popup Message Settings /wp-admin/options-general.php?page=popup-message/popup-message.php3.2129.98

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Popup Message
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5814.86 ▲0.621.77 ▼0.0442.69 ▲0.19
Dashboard /wp-admin2,222 ▲155.80 ▲0.8897.96 ▼23.0541.34 ▲3.48
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0136.22 ▼4.6336.02 ▼0.94
Add New Post /wp-admin/post-new.php1,529 ▼217.83 ▼5.49681.49 ▼30.9159.93 ▼6.84
Media Library /wp-admin/upload.php1,407 ▲74.25 ▲0.03103.15 ▲2.5050.84 ▲4.01
Popup Message Settings /wp-admin/options-general.php?page=popup-message/popup-message.php8032.0523.1626.44

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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)
Good news, no errors were detected

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popup-message/popup-message.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === popup-message === )
You can take inspiration from this readme.txt

popup-message/popup-message.php Passed 13 tests

The main PHP file in "Popup Message" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
40 characters long description:
Display popup flash message after login.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected88 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1136174
CSS10014

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions9
▷ Named functions9100.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
No PNG files were detected