84% zervus

Code Review | ZERVUS

WordPress plugin ZERVUS scored84%from 54 tests.

About plugin

  • Plugin page: zervus
  • Plugin version: 1.33
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.9.1
  • WordPress version: 6.3.1
  • First release: Nov 6, 2015
  • Latest release: Dec 19, 2017
  • Number of updates: 7
  • Update frequency: every 110.7 days
  • Top authors: zyntux (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /616 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.20MB] [CPU: ▼14.59ms] Passed 4 tests

Server-side resources used by ZERVUS
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.39 ▼0.0727.42 ▼10.70
Dashboard /wp-admin3.12 ▼0.1838.85 ▼4.50
Posts /wp-admin/edit.php3.25 ▼0.1136.18 ▼16.19
Add New Post /wp-admin/post-new.php5.44 ▼0.4468.85 ▼22.90
Media Library /wp-admin/upload.php3.19 ▼0.0425.73 ▼8.57

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

ZERVUS: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,796 ▲6113.27 ▼0.961.64 ▼0.2642.31 ▼2.11
Dashboard /wp-admin2,207 ▲165.84 ▼0.04110.71 ▲7.1437.06 ▼8.07
Posts /wp-admin/edit.php2,087 ▼22.06 ▲0.0536.02 ▼2.0032.98 ▼0.27
Add New Post /wp-admin/post-new.php1,531 ▼223.31 ▲0.24647.73 ▼29.6148.98 ▼5.23
Media Library /wp-admin/upload.php1,389 ▲14.24 ▼0.05100.81 ▼5.7044.97 ▼2.96

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/zervus/zervus.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
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 describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 14 tag instead of maximum 10
Please take inspiration from this readme.txt

zervus/zervus.php Passed 13 tests

This is the main PHP file of "ZERVUS" version 1.33, 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:
Dieses Plugin aendert die Begruessung in der Adminleiste oben rechts, nach dem Einloggen.

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
Good job! No executable or dangerous file extensions detected55 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP161255

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
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%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin