78% rrze-access

Code Review | RRZE-Access

WordPress plugin RRZE-Access scored78%from 54 tests.

About plugin

  • Plugin page: rrze-access
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-3.4
  • WordPress version: 6.3.1
  • First release: Sep 17, 2012
  • Latest release: Sep 19, 2012
  • Number of updates: 12
  • Update frequency: every 0.3 days
  • Top authors: rvdforst (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /688 total downloads

Benchmarks

Plugin footprint 83% from 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.10MB] [CPU: ▼0.27ms] Passed 4 tests

Analyzing server-side resources used by RRZE-Access
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0947.41 ▲7.62
Dashboard /wp-admin3.40 ▲0.0952.38 ▼1.95
Posts /wp-admin/edit.php3.52 ▲0.1651.88 ▲4.55
Add New Post /wp-admin/post-new.php6.00 ▲0.1197.05 ▼8.55
Media Library /wp-admin/upload.php3.33 ▲0.0942.30 ▲4.85
Zugriffsbeschränkung-Einrichtung /wp-admin/options-general.php?page=access-setup3.2730.06

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 7 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
_rrze_access_version
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for RRZE-Access
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,797 ▲3614.68 ▲0.261.64 ▼0.4042.52 ▼1.57
Dashboard /wp-admin2,200 ▲265.64 ▲0.0587.01 ▼20.4241.06 ▼1.28
Posts /wp-admin/edit.php2,108 ▲52.01 ▲0.0236.31 ▼7.8236.58 ▼1.62
Add New Post /wp-admin/post-new.php1,533 ▲723.09 ▲0.05667.83 ▲27.7076.12 ▲16.13
Media Library /wp-admin/upload.php1,408 ▲84.32 ▲0.23109.43 ▲6.7748.68 ▲3.44
Zugriffsbeschränkung-Einrichtung /wp-admin/options-general.php?page=access-setup8092.0023.4731.19

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • _rrze_access_version
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/options-general.php?page=access-setup
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=access-setup
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 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 following issues need your attention
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rrze-access/rrze-access.php:544
    • > PHP Fatal error
      Cannot redeclare wptexturize() (previously declared in wp-includes/formatting.php:37) in wp-includes/formatting.php on line 37

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 issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that require attention:
  • Screenshots: Screenshot #1 (Beschränkung von IP-Adressen auf einen Artikel) image missing
The official readme.txt might help

rrze-access/rrze-access.php Passed 13 tests

The primary PHP file in "RRZE-Access" version 1.0 is used by WordPress to initiate all plugin functionality
95 characters long description:
Zugriffsbeschränkung von IP-Adressen auf Artikel, Seiten und die entsprechenden Media-Dateien.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin647 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP227426597
JavaScript16042
CSS1008

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity57.50
▷ Minimum class complexity30.00
▷ Maximum class complexity85.00
Average method complexity3.97
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods38
▷ Static methods38100.00%
▷ Public methods1847.37%
▷ Protected methods00.00%
▷ Private methods2052.63%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants15
▷ Global constants213.33%
▷ Class constants1386.67%
▷ Public constants13100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png102.21KB45.70KB▼ 55.29%