78% begenius-reputationgenius

Code Review | Reputationgenius

WordPress plugin Reputationgenius scored78%from 54 tests.

About plugin

  • Plugin page: begenius-reputati...
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.8
  • WordPress version: 6.3.1
  • First release: Jun 28, 2017
  • Latest release: Jan 17, 2018
  • Number of updates: 15
  • Update frequency: every 13.5 days
  • Top authors: cgabbaninibegenius (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /739 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.93ms] Passed 4 tests

An overview of server-side resources used by Reputationgenius
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.58 ▼9.42
Dashboard /wp-admin3.41 ▲0.1153.14 ▼1.59
Posts /wp-admin/edit.php3.53 ▲0.1750.35 ▼0.77
Add New Post /wp-admin/post-new.php5.99 ▲0.11105.65 ▲9.13
Media Library /wp-admin/upload.php3.34 ▲0.1138.95 ▲4.06

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 38 new files
Database: no new tables, 17 new options
New WordPress options
text_color
theysaidso_admin_options
widget_recent-comments
latest_comments_download
stars_hidden_color
feed_type
widget_theysaidso_widget
landing_page_url
comments_cache_expiration
rss_feed_url
...

Browser metrics Passed 4 tests

Checking browser requirements for Reputationgenius
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7014.81 ▲0.581.83 ▲0.0743.81 ▼0.49
Dashboard /wp-admin2,222 ▲315.05 ▲0.19108.14 ▲1.6039.06 ▼3.59
Posts /wp-admin/edit.php2,105 ▲162.13 ▲0.1635.43 ▼0.3232.20 ▼5.28
Add New Post /wp-admin/post-new.php1,549 ▲1523.39 ▲0.20664.23 ▲43.2459.54 ▲5.14
Media Library /wp-admin/upload.php1,404 ▲164.13 ▼0.08101.35 ▲2.6844.10 ▲0.75

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/begenius-reputationgenius/begenius-reputationgenius.php
  • 13× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Begenius\\Plugin' not found in wp-content/plugins/begenius-reputationgenius/Reputationgenius/class-reputationgenius.php:11
    • > PHP Notice
      Undefined variable: plugin in wp-content/plugins/begenius-reputationgenius/views/options_page.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to a member function options() on null in wp-content/plugins/begenius-reputationgenius/views/templates/hotel_master.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Begenius\\PluginOption' not found in wp-content/plugins/begenius-reputationgenius/vendor/Begenius/class-dropdownoption.php:7
    • > PHP Fatal error
      Uncaught Error: Call to a member function options() on null in wp-content/plugins/begenius-reputationgenius/views/templates/custom.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Begenius\\Serializer' not found in wp-content/plugins/begenius-reputationgenius/vendor/Begenius/class-xmlserializer.php:7
    • > PHP Notice
      Undefined variable: plugin in wp-content/plugins/begenius-reputationgenius/views/templates/custom.php on line 3
    • > PHP Notice
      Undefined variable: plugin in wp-content/plugins/begenius-reputationgenius/views/templates/hotel_master.php on line 4
    • > PHP Fatal error
      Uncaught Error: Class 'Begenius\\PluginOption' not found in wp-content/plugins/begenius-reputationgenius/vendor/Begenius/class-coloroption.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'Begenius\\PluginConfiguration' not found in wp-content/plugins/begenius-reputationgenius/Reputationgenius/class-rgconfiguration.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
  • Donate link: Please fix this invalid URI: "none"
  • Screenshots: Add an image for screenshot #1 (http://comments.reputationgenius.it/bg-reputationgenius/bg-reputationgenius-screenshot-1.jpg)
Please take inspiration from this readme.txt

begenius-reputationgenius/begenius-reputationgenius.php 92% from 13 tests

The main PHP script in "Reputationgenius" version 1.1.3 is automatically included on every request by WordPress
Please take the time to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin1,380 lines of code in 30 files:
LanguageFilesBlank linesComment linesLines of code
PHP24227191,090
PO File510153289
JavaScript1121

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity4.17
▷ Minimum class complexity1.00
▷ Maximum class complexity10.00
Average method complexity1.86
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes18
▷ Abstract classes422.22%
▷ Concrete classes1477.78%
▷ Final classes00.00%
Methods69
▷ Static methods1014.49%
▷ Public methods6188.41%
▷ Protected methods710.14%
▷ Private methods11.45%
Functions9
▷ Named functions777.78%
▷ Anonymous functions222.22%
Constants10
▷ Global constants00.00%
▷ Class constants10100.00%
▷ Public constants10100.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
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/icon.png1.26KB0.21KB▼ 83.75%