84% ipros24-notices

Code Review | iPROS24 Notices

WordPress plugin iPROS24 Notices scored84%from 54 tests.

About plugin

  • Plugin page: ipros24-notices
  • Plugin version: 1.7.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4
  • WordPress version: 6.3.1
  • First release: Jan 13, 2018
  • Latest release: May 19, 2020
  • Number of updates: 12
  • Update frequency: every 71.5 days
  • Top authors: nevis2us (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /752 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.84ms] Passed 4 tests

This is a short check of server-side resources used by iPROS24 Notices
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0644.58 ▲6.07
Dashboard /wp-admin3.37 ▲0.0355.29 ▼12.28
Posts /wp-admin/edit.php3.49 ▲0.1349.21 ▼1.22
Add New Post /wp-admin/post-new.php5.95 ▲0.0791.04 ▼11.70
Media Library /wp-admin/upload.php3.30 ▲0.0738.16 ▲5.84
Add New /wp-admin/post-new.php?post_type=ipros24-notice3.4157.43
Notices /wp-admin/options-general.php?page=ipros24-notices-options-page3.2735.30
All Notices /wp-admin/edit.php?post_type=ipros24-notice3.3439.19

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
ipros24-notices-options
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for iPROS24 Notices
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,980 ▲23413.94 ▼0.4013.25 ▲11.5231.49 ▼11.95
Dashboard /wp-admin2,228 ▲515.58 ▼0.1594.54 ▼9.2445.14 ▲2.74
Posts /wp-admin/edit.php2,130 ▲302.03 ▲0.0435.73 ▼1.7439.97 ▲3.56
Add New Post /wp-admin/post-new.php1,554 ▲2823.30 ▲0.14683.93 ▼32.8453.11 ▼2.62
Media Library /wp-admin/upload.php1,436 ▲394.22 ▲0.04109.09 ▲4.5550.81 ▲1.63
Add New /wp-admin/post-new.php?post_type=ipros24-notice2,3407.52183.6781.15
Notices /wp-admin/options-general.php?page=ipros24-notices-options-page9282.0838.5934.52
All Notices /wp-admin/edit.php?post_type=ipros24-notice1,0971.9731.8031.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • ipros24-notices-options
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_is_mobile() in wp-content/plugins/ipros24-notices/assets/php/utils.php:4

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (Sample notice.), #2 (Password protected and personalised notices.), #3 (Plugin settings.), #4 (Editing a notice.)
The official readme.txt might help

ipros24-notices/ipros24-notices.php Passed 13 tests

The principal PHP file in "iPROS24 Notices" v. 1.7.2 is loaded by WordPress automatically on each request
39 characters long description:
iPROS24 advanced notices for WordPress.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,480 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP239877859
JavaScript321310364
CSS4500154
PO File14846103

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.63
Average class complexity47.33
▷ Minimum class complexity16.00
▷ Maximum class complexity81.00
Average method complexity3.98
▷ Minimum method complexity1.00
▷ Maximum method complexity26.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods43
▷ Static methods1330.23%
▷ Public methods43100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions15
▷ Named functions746.67%
▷ Anonymous functions853.33%
Constants4
▷ Global constants250.00%
▷ Class constants250.00%
▷ Public constants2100.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.48MB with 0.31MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png148.81KB51.41KB▼ 65.45%
screenshot-3.png76.55KB29.65KB▼ 61.27%
screenshot-1.png196.54KB65.71KB▼ 66.56%
screenshot-4.png72.75KB28.51KB▼ 60.81%