74% pawpy-popup-alert-wp

Code Review | PAWPY Popup Alert WP

WordPress plugin PAWPY Popup Alert WP scored74%from 54 tests.

About plugin

  • Plugin page: pawpy-popup-alert-wp
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.1-5.9.1
  • WordPress version: 6.3.1
  • First release: Apr 17, 2022
  • Latest release: Apr 17, 2022
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: yaseratallah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /343 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.93MB] [CPU: ▼41.51ms] Passed 4 tests

An overview of server-side resources used by PAWPY Popup Alert WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.57 ▲1.85
Dashboard /wp-admin3.03 ▼0.3224.10 ▼46.01
Posts /wp-admin/edit.php3.03 ▼0.3329.09 ▼32.94
Add New Post /wp-admin/post-new.php3.03 ▼2.8628.25 ▼74.94
Media Library /wp-admin/upload.php3.03 ▼0.2026.87 ▼12.14

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for PAWPY Popup Alert WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6014.34 ▼0.011.64 ▲0.1243.94 ▲3.37
Dashboard /wp-admin2,210 ▲395.59 ▲0.0184.89 ▼7.6785.25 ▲37.67
Posts /wp-admin/edit.php2,118 ▲181.99 ▲0.0137.94 ▲1.4133.03 ▼3.29
Add New Post /wp-admin/post-new.php1,539 ▲1323.97 ▲0.82769.63 ▲53.3771.25 ▲5.17
Media Library /wp-admin/upload.php1,418 ▲244.07 ▼0.1999.88 ▲0.5580.22 ▲34.54

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_menu_page was called incorrectly. The seventh parameter passed to add_menu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 6.0.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pawpy-popup-alert-wp/pluginPage.php:16

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 Passed 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
2 plugin tags: wordpress, javascript

pawpy-popup-alert-wp/pluginPage.php 85% from 13 tests

This is the main PHP file of "PAWPY Popup Alert WP" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("pawpy-popup-alert-wp.php" instead of "pluginPage.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 170 characters long)

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 plugin655 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
CSS37415458
PHP31032197

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
admin/image/icon.png0.57KB0.69KB0.00%