74% exit-monitor

Code Review | Exit Monitor

WordPress plugin Exit Monitor scored74%from 54 tests.

About plugin

  • Plugin page: exit-monitor
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Sep 15, 2014
  • Latest release: Sep 16, 2014
  • Number of updates: 2
  • Update frequency: every 7.5 days
  • Top authors: cacheventures (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,574 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.95MB] [CPU: ▼34.83ms] Passed 4 tests

An overview of server-side resources used by Exit Monitor
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0036.78 ▼4.27
Dashboard /wp-admin2.99 ▼0.3120.27 ▼26.68
Posts /wp-admin/edit.php2.99 ▼0.3623.38 ▼18.61
Add New Post /wp-admin/post-new.php2.99 ▼2.8922.07 ▼80.72
Media Library /wp-admin/upload.php2.99 ▼0.2320.53 ▼13.31

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Exit Monitor
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲9813.13 ▼1.254.83 ▲3.1441.24 ▼1.82
Dashboard /wp-admin2,219 ▲345.79 ▼0.07104.96 ▼12.3437.51 ▼10.52
Posts /wp-admin/edit.php2,105 ▲132.02 ▲0.0236.41 ▼3.7832.49 ▼4.27
Add New Post /wp-admin/post-new.php1,527 ▲1317.79 ▲0.28666.74 ▲48.2361.42 ▲3.21
Media Library /wp-admin/upload.php1,401 ▲164.23 ▲0.1395.26 ▼40.1041.24 ▼3.88

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/exit-monitor/exit-monitor.php+23
    Undefined variable: icon_url
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/exit-monitor/exit-monitor.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% 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
These attributes need to be fixed:
  • Tags: Too many tags (28 tag instead of maximum 10); only the first 5 tags are used in your directory listing
  • Screenshots: Add images for these screenshots: #1 (A live Exit Monitor example - 1.), #2 (A live Exit Monitor example - 2.), #3 (A live Exit Monitor example - 3.), #4 (A live Exit Monitor example - 4.)
You can take inspiration from this readme.txt

exit-monitor/exit-monitor.php Passed 13 tests

"Exit Monitor" version 1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
39 characters long description:
Convert Exiting Web Visitors Into Leads

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected99 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP118999

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
exitmonitor.png4.18KB2.84KB▼ 32.00%