94% get-noticed-our-blog

Code Review | Get Noticed: "Our Blog"

WordPress plugin Get Noticed: "Our Blog" scored 94% from 54 tests.

About plugin

  • Plugin page: get-noticed-our-blog
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.0
  • WordPress version: 5.8.1
  • First release: Nov 10, 2014
  • Latest release: Nov 10, 2014
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: david.kryzaniak (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 793 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼148.54ms] Passed 4 tests

Server-side resources used by Get Noticed: "Our Blog"
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0233.07 ▼2.36
Dashboard /wp-admin3.10 ▲0.0447.21 ▲0.78
Posts /wp-admin/edit.php3.15 ▲0.0442.65 ▲1.31
Add New Post /wp-admin/post-new.php5.45 ▲0.0290.50 ▼589.80
Media Library /wp-admin/upload.php3.04 ▲0.0430.18 ▼2.78
GNT: Our Blog /wp-admin/themes.php?page=gnt-our-blog-settings3.0128.23

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Get Noticed: "Our Blog"
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲8815.95 ▼0.118.46 ▼1.5049.55 ▲3.42
Dashboard /wp-admin2,975 ▲425.94 ▼0.15143.50 ▼7.96110.05 ▼7.00
Posts /wp-admin/edit.php2,744 ▲52.72 ▲0.0066.93 ▼5.0394.44 ▲8.41
Add New Post /wp-admin/post-new.php1,875 ▲19219.09 ▲0.51374.12 ▼63.85107.36 ▼0.54
Media Library /wp-admin/upload.php1,815 ▲85.04 ▲0.04158.75 ▼10.68118.81 ▲2.81
GNT: Our Blog /wp-admin/themes.php?page=gnt-our-blog-settings1,1502.1065.4273.70

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

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 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 is_admin() in wp-content/plugins/get-noticed-our-blog/gnt-our-blog.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Plugin Name: You should set the name of your plugin on the first line ( === get-noticed-our-blog === )
The official readme.txt is a good inspiration

get-noticed-our-blog/gnt-our-blog.php 92% from 13 tests

The principal PHP file in "Get Noticed: "Our Blog"" v. 1.0.0 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("get-noticed-our-blog.php" instead of "gnt-our-blog.php")

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
Everything looks great! No dangerous files found in this plugin143 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP33157143

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.71
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected