84% ipermission

Code Review | iPermisson

WordPress plugin iPermisson scored84%from 54 tests.

About plugin

  • Plugin page: ipermission
  • Plugin version: 3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 1.0-5.6
  • WordPress version: 6.3.1
  • First release: Nov 11, 2013
  • Latest release: Jan 19, 2021
  • Number of updates: 9
  • Update frequency: every 292.2 days
  • Top authors: KeyvaHardani (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /860 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

A check of server-side resources used by iPermisson
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.72 ▼0.78
Dashboard /wp-admin3.25 ▼0.0542.03 ▼8.89
Posts /wp-admin/edit.php3.39 ▲0.0349.51 ▲1.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0388.68 ▼11.99
Media Library /wp-admin/upload.php3.26 ▲0.0338.29 ▲3.12

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
ipermission_dashboard_widgets
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for iPermisson
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,908 ▼85313.97 ▼0.411.85 ▲0.2542.84 ▲0.71
Dashboard /wp-admin1,313 ▼8675.15 ▼0.5277.31 ▼11.7065.90 ▲21.41
Posts /wp-admin/edit.php2,115 ▲121.98 ▼0.0138.42 ▼0.7534.01 ▼2.65
Add New Post /wp-admin/post-new.php1,539 ▲1323.60 ▲0.55748.23 ▲38.0153.09 ▼8.61
Media Library /wp-admin/upload.php1,409 ▲154.21 ▲0.0398.74 ▼14.7675.01 ▲25.17

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • 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)
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× 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/ipermission/ipermission.php:28
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ipermission/ipermission/ipermission.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Screenshots: Screenshot #1 (iPermisson) image not found
The official readme.txt might help

ipermission/ipermission.php Passed 13 tests

This is the main PHP file of "iPermisson" version 3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
104 characters long description:
iPermission set Rule for your admin dashboard. Manage Or Hide widgets, Options, Plugins, and Admin Menu.

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
Everything looks great! No dangerous files found in this plugin128 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12268128

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions18
▷ Named functions18100.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
4 PNG files occupy 0.21MB with 0.08MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png108.62KB30.13KB▼ 72.26%
ipermission/screenshot-1.png108.62KB30.13KB▼ 72.26%
ipermission/images/ipermission.png1.04KB1.18KB0.00%
images/ipermission.png1.04KB1.18KB0.00%