94% akismet-notifier

Code Review | Akismet Notifier

WordPress plugin Akismet Notifier scored 94% from 54 tests.

About plugin

  • Plugin page: akismet-notifier
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-4.5
  • WordPress version: 5.8.1
  • First release: Jun 19, 2014
  • Latest release: Apr 27, 2016
  • Number of updates: 8
  • Update frequency: every 84.9 days
  • Top authors: hornero (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

40+ active / 2,627 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

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

A check of server-side resources used by Akismet Notifier
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.0124.73 ▼2.48
Dashboard /wp-admin3.06 ▲0.0038.30 ▼5.36
Posts /wp-admin/edit.php3.12 ▲0.0135.96 ▲3.27
Add New Post /wp-admin/post-new.php5.43 ▼0.0175.15 ▼591.93
Media Library /wp-admin/upload.php3.01 ▲0.0123.99 ▼3.40

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Akismet Notifier
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,666 ▲4015.65 ▼0.045.29 ▼4.9974.86 ▼5.82
Dashboard /wp-admin2,933 ▲406.02 ▼0.12116.22 ▼16.76166.78 ▼7.16
Posts /wp-admin/edit.php2,737 ▼33.23 ▼0.0162.31 ▼1.53142.54 ▲5.70
Add New Post /wp-admin/post-new.php3,735 ▼7218.06 ▼0.58426.28 ▼69.99174.05 ▲8.35
Media Library /wp-admin/upload.php1,755 ▲35.52 ▲0.02139.85 ▼3.86186.36 ▼3.48

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
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 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/akismet-notifier/akismet-notifier.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

akismet-notifier/akismet-notifier.php Passed 13 tests

Analyzing the main PHP file in "Akismet Notifier" version 1.0.3
87 characters long description:
Simple akismet notifier. When Akismet finds SPAM a frontend notification will be shown.

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
No dangerous file extensions were detected40 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP152720
PO File12120

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin