100% impostercide

Code Review | Impostercide

WordPress plugin Impostercide scored 100% from 54 tests.

About plugin

  • Plugin page: impostercide
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.7-5.8
  • WordPress version: 5.9.2
  • First release: Jul 13, 2010
  • Latest release: Jul 29, 2021
  • Number of updates: 70
  • Update frequency: every 57.6 days
  • Top authors: Ipstenu (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 7,637 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
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼291.93ms] Passed 4 tests

An overview of server-side resources used by Impostercide
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0453.90 ▲4.60
Dashboard /wp-admin3.46 ▲0.0633.04 ▼1.37
Posts /wp-admin/edit.php3.69 ▲0.0540.99 ▲4.96
Add New Post /wp-admin/post-new.php6.92 ▼0.0592.55 ▼1,173.93
Media Library /wp-admin/upload.php3.34 ▲0.0526.22 ▲3.00
Impostercide /wp-admin/tools.php?page=impostercide3.3122.25

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Impostercide
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,790 ▲3616.01 ▲0.425.89 ▼0.182.66 ▼0.39
Dashboard /wp-admin2,897 ▲426.17 ▼0.00119.56 ▼13.44161.84 ▲1.17
Posts /wp-admin/edit.php2,696 ▲23.25 ▲0.0064.22 ▼1.55136.98 ▼4.64
Add New Post /wp-admin/post-new.php1,776 ▲11521.76 ▲5.24445.54 ▲14.49156.76 ▲1.64
Media Library /wp-admin/upload.php1,706 ▲85.53 ▲0.05147.86 ▲4.74190.69 ▲6.48
Impostercide /wp-admin/tools.php?page=impostercide1,0322.3653.04109.76

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
Uninstaller ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

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 Passed 29 tests

readme.txt Passed 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
5 plugin tags: comments, spoof, multisite, imposter, wpmu

impostercide/impostercide.php Passed 13 tests

This is the main PHP file of "Impostercide" version 3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
89 characters long description:
Impostercide prevents unauthenticated users from posting a comment as a registered users.

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
Success! There were no dangerous files found in this plugin169 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP161133158
XML10011

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods13
▷ Static methods00.00%
▷ Public methods13100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected