84% glotpress-notify

Code Review | GlotPress Notify

WordPress plugin GlotPress Notify scored84%from 54 tests.

About plugin

  • Plugin page: glotpress-notify
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.3
  • WordPress version: 6.3.1
  • First release: Sep 14, 2014
  • Latest release: Jul 30, 2023
  • Number of updates: 24
  • Update frequency: every 135.0 days
  • Top authors: webaware (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,313 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.08MB] [CPU: ▼4.71ms] Passed 4 tests

Analyzing server-side resources used by GlotPress Notify
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0840.76 ▼0.07
Dashboard /wp-admin3.39 ▲0.0844.59 ▼9.25
Posts /wp-admin/edit.php3.50 ▲0.1445.16 ▲3.16
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.52 ▼12.11
Media Library /wp-admin/upload.php3.31 ▲0.0837.13 ▲2.58
GlotPress Notify /wp-admin/admin.php?page=gpnotify3.2754.08
Settings /wp-admin/admin.php?page=gpnotify-settings3.2832.93

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
db_upgraded
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

An overview of browser requirements for GlotPress Notify
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.71 ▼0.671.81 ▲0.1238.96 ▼6.27
Dashboard /wp-admin2,227 ▲455.81 ▼0.0695.42 ▼19.2240.53 ▼1.26
Posts /wp-admin/edit.php2,113 ▲272.01 ▼0.0535.26 ▼2.8729.65 ▼1.31
Add New Post /wp-admin/post-new.php1,536 ▼617.52 ▼0.92645.32 ▲24.0261.10 ▲5.64
Media Library /wp-admin/upload.php1,418 ▲274.25 ▲0.0897.23 ▼3.9141.44 ▼2.74
GlotPress Notify /wp-admin/admin.php?page=gpnotify7011.146.4118.38
Settings /wp-admin/admin.php?page=gpnotify-settings8272.1925.3026.39

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • recovery_mode_email_last_sent
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
    • > GET request to /wp-admin/admin.php?page=gpnotify
    • > Warning in wp-content/plugins/glotpress-notify/includes/class.GPNotifyPlugin.php+98
    require(wp-content/plugins/glotpress-notify/views/admin-no-prefix.php): failed to open stream: No such file or directory
    • > GET request to /wp-admin/admin.php?page=gpnotify
    • > Compile error in wp-content/plugins/glotpress-notify/includes/class.GPNotifyPlugin.php+98
    require(): Failed opening required 'wp-content/plugins/glotpress-notify/views/admin-no-prefix.php' (include_path='.:/usr/share/php')

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
No output text or server-side errors detected 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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (settings), #2 (user settings for subscribing to projects), #3 (listing of projects with translations awaiting approval)
The official readme.txt might help

glotpress-notify/glotpress-notify.php Passed 13 tests

The main file in "GlotPress Notify" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
82 characters long description:
notify WordPress users when new GlotPress translations strings are awaiting review

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected609 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP10179199599
Markdown12010

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.24
Average class complexity9.60
▷ Minimum class complexity1.00
▷ Maximum class complexity21.00
Average method complexity2.39
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods31
▷ Static methods412.90%
▷ Public methods2683.87%
▷ Protected methods516.13%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.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
3 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-3.png26.39KB14.58KB▼ 44.74%
screenshot-2.png30.76KB16.08KB▼ 47.74%
screenshot-1.png10.36KB5.95KB▼ 42.58%