84% summits-alert

Code Review | Summits Alert

WordPress plugin Summits Alert scored84%from 54 tests.

About plugin

  • Plugin page: summits-alert
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.1
  • WordPress version: 6.3.1
  • First release: Mar 28, 2014
  • Latest release: Jan 26, 2015
  • Number of updates: 20
  • Update frequency: every 15.2 days
  • Top authors: eisenivan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,367 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
Installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼9.84ms] Passed 4 tests

A check of server-side resources used by Summits Alert
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.65 ▼4.30
Dashboard /wp-admin3.32 ▼0.0350.22 ▼16.17
Posts /wp-admin/edit.php3.37 ▲0.0150.88 ▼1.59
Add New Post /wp-admin/post-new.php5.90 ▲0.0184.44 ▼17.31
Media Library /wp-admin/upload.php3.24 ▲0.0135.36 ▼1.54
Site Alert /wp-admin/options-general.php?page=summits_alert_options3.2132.18

Server storage [IO: ▲0.16MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by Summits Alert
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲4714.40 ▲0.161.56 ▲0.0341.43 ▲1.83
Dashboard /wp-admin2,199 ▲225.49 ▼0.1287.27 ▼5.7838.40 ▼4.03
Posts /wp-admin/edit.php2,107 ▲101.97 ▼0.0438.24 ▲0.9035.60 ▲0.70
Add New Post /wp-admin/post-new.php1,531 ▲523.21 ▼0.31676.61 ▲1.1866.45 ▲4.62
Media Library /wp-admin/upload.php1,407 ▲74.14 ▼0.01102.26 ▲0.1046.18 ▲3.08
Site Alert /wp-admin/options-general.php?page=summits_alert_options8771.9921.7926.35

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
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • 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)
The smoke test was a success, however most plugin functionality was not tested

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
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/summits-alert/summits_admin.php:22
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/summits-alert/summits_alert.php:90

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: announcements

summits-alert/summits_alert.php 92% from 13 tests

The primary PHP file in "Summits Alert" version 1.0 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("summits-alert.php" instead of "summits_alert.php")

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
No dangerous file extensions were detected141 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33212141

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.16MB with 0.12MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-2.png126.66KB33.42KB▼ 73.61%
assets/screenshot-1.png34.95KB9.10KB▼ 73.96%