84% pingmeter-uptime-monitoring

Code Review | Pingmeter Uptime Monitoring

WordPress plugin Pingmeter Uptime Monitoring scored84%from 54 tests.

About plugin

  • Plugin page: pingmeter-uptime-...
  • Plugin version: 1.0.3
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 14, 2018
  • Latest release: Dec 18, 2022
  • Number of updates: 6
  • Update frequency: every 249.2 days
  • Top authors: pingmeter (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /5,117 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.10MB] [CPU: ▼1.68ms] Passed 4 tests

A check of server-side resources used by Pingmeter Uptime Monitoring
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1036.01 ▼7.90
Dashboard /wp-admin3.40 ▲0.1045.54 ▼4.74
Posts /wp-admin/edit.php3.45 ▲0.1051.42 ▲5.06
Add New Post /wp-admin/post-new.php5.98 ▲0.1091.03 ▲3.72
Media Library /wp-admin/upload.php3.32 ▲0.1035.57 ▲2.22
Pingmeter /wp-admin/options-general.php?page=pingmeter-uptime-monitoring/pingmeter.php3.2930.00

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

Pingmeter Uptime Monitoring: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.13 ▼1.251.76 ▼0.1341.34 ▼12.51
Dashboard /wp-admin2,222 ▲375.90 ▼0.00109.91 ▼6.1140.69 ▼2.11
Posts /wp-admin/edit.php2,105 ▲192.01 ▼0.0440.27 ▲3.9639.73 ▲7.22
Add New Post /wp-admin/post-new.php1,529 ▼1317.87 ▼0.53695.84 ▲66.3359.37 ▲6.72
Media Library /wp-admin/upload.php1,407 ▲224.20 ▼0.0197.73 ▼6.8640.73 ▼3.14
Pingmeter /wp-admin/options-general.php?page=pingmeter-uptime-monitoring/pingmeter.php1,2724.76126.0858.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget

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)
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
Please fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pingmeter-uptime-monitoring/pingmeter.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
7 plugin tags: alert, ping, server, uptime, notify...

pingmeter-uptime-monitoring/pingmeter.php 92% from 13 tests

The main PHP file in "Pingmeter Uptime Monitoring" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("pingmeter-uptime-monitoring.php" instead of "pingmeter.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin542 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP144723542

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions13
▷ Named functions13100.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
3 PNG files occupy 0.12MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
logo.png10.63KB5.78KB▼ 45.66%
favicon.png15.71KB9.87KB▼ 37.19%
pingmeter.png93.44KB28.40KB▼ 69.61%