84% popnotifi

Code Review | PopNotifi

WordPress plugin PopNotifi scored84%from 54 tests.

About plugin

  • Plugin page: popnotifi
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.7
  • WordPress version: 6.3.1
  • First release: Jan 18, 2019
  • Latest release: Jan 24, 2019
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: popnotifi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /518 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

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

This is a short check of server-side resources used by PopNotifi
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0042.17 ▼1.78
Dashboard /wp-admin3.31 ▲0.0144.25 ▼4.07
Posts /wp-admin/edit.php3.36 ▲0.0147.46 ▼6.99
Add New Post /wp-admin/post-new.php5.89 ▲0.0185.34 ▼8.32
Media Library /wp-admin/upload.php3.24 ▲0.0140.37 ▲11.17
PopNotifi /wp-admin/options-general.php?page=popnotifi_options3.2327.11

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for PopNotifi
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲4914.41 ▼0.181.70 ▲0.2039.67 ▼3.01
Dashboard /wp-admin2,216 ▲365.63 ▼0.0494.25 ▲6.6448.27 ▲2.54
Posts /wp-admin/edit.php2,122 ▲222.10 ▲0.0933.80 ▼7.6934.98 ▼4.94
Add New Post /wp-admin/post-new.php1,546 ▲923.33 ▲4.95672.50 ▲36.5153.21 ▼0.78
Media Library /wp-admin/upload.php1,421 ▲244.20 ▼0.09101.04 ▼7.7943.35 ▼1.91
PopNotifi /wp-admin/options-general.php?page=popnotifi_options8912.1327.7629.80

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/popnotifi/popnotifi.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #4 (Notification appears on the screens of your users), #5 (Setup api key to send push notification while publishing an article)
The official readme.txt is a good inspiration

popnotifi/popnotifi.php 92% from 13 tests

Analyzing the main PHP file in "PopNotifi" version 1.0
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 152 characters long)

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
Success! There were no dangerous files found in this plugin110 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1149108
JavaScript1002

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions6
▷ Named functions6100.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