94% mansplainer

Code Review | Mansplainer

WordPress plugin Mansplainer scored 94% from 54 tests.

About plugin

  • Plugin page: mansplainer
  • Plugin version: 1.1.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4-4.8
  • WordPress version: 5.8.1
  • First release: Aug 30, 2017
  • Latest release: Aug 31, 2017
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: morganestes (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 507 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼145.07ms] Passed 4 tests

Analyzing server-side resources used by Mansplainer
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.0234.44 ▲0.63
Dashboard /wp-admin3.07 ▲0.0239.76 ▼6.51
Posts /wp-admin/edit.php3.13 ▲0.0235.93 ▼6.19
Add New Post /wp-admin/post-new.php5.43 ▼0.0086.87 ▼568.22
Media Library /wp-admin/upload.php3.02 ▲0.0131.83 ▲1.51

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Mansplainer
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲8315.83 ▲0.378.17 ▼1.1349.05 ▼0.47
Dashboard /wp-admin2,970 ▲365.89 ▼0.24136.45 ▼16.21117.56 ▼4.86
Posts /wp-admin/edit.php2,739 ▼02.69 ▼0.0069.34 ▲4.8792.55 ▲1.25
Add New Post /wp-admin/post-new.php3,577 ▲1,90714.93 ▼4.17419.70 ▲46.55107.48 ▼3.32
Media Library /wp-admin/upload.php1,810 ▲35.02 ▲0.01156.19 ▲10.14110.61 ▼6.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely 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 | A smoke test targeting server-side errors
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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Mansplainer\\add_action() in wp-content/plugins/mansplainer/mansplainer.php:29

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: wtf, comments, filter

mansplainer/mansplainer.php Passed 13 tests

This is the main PHP file of "Mansplainer" version 1.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
58 characters long description:
Fixes comments to be more technically accurate, naturally.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin32 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1125232

PHP code Passed 2 tests

Analyzing 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.33
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
Namespaces1
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%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin