84% igemutato

Code Review | Igemutató

WordPress plugin Igemutató scored84%from 54 tests.

About plugin

  • Plugin page: igemutato
  • Plugin version: 1.6
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.4
  • WordPress version: 6.3.1
  • First release: Jul 3, 2014
  • Latest release: Apr 25, 2020
  • Number of updates: 19
  • Update frequency: every 111.8 days
  • Top authors: molnarm (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,212 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.03MB] [CPU: ▼6.49ms] Passed 4 tests

This is a short check of server-side resources used by Igemutató
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0337.60 ▼0.83
Dashboard /wp-admin3.34 ▲0.0442.42 ▼6.11
Posts /wp-admin/edit.php3.39 ▲0.0346.45 ▲1.54
Add New Post /wp-admin/post-new.php5.92 ▲0.0375.55 ▼18.86
Media Library /wp-admin/upload.php3.26 ▲0.0333.78 ▼0.14
Igemutató /wp-admin/options-general.php?page=igemutato-options3.2426.84

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
db_upgraded
widget_recent-comments
can_compress_scripts
igemutato_options

Browser metrics Passed 4 tests

Checking browser requirements for Igemutató
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,908 ▲16214.28 ▼0.256.19 ▲4.5844.98 ▲6.22
Dashboard /wp-admin2,193 ▲195.62 ▼0.0897.92 ▲12.3444.18 ▲3.46
Posts /wp-admin/edit.php2,107 ▲71.98 ▼0.0440.03 ▲1.8935.66 ▲0.30
Add New Post /wp-admin/post-new.php1,531 ▲523.07 ▼0.46665.88 ▲3.5761.74 ▲12.86
Media Library /wp-admin/upload.php1,401 ▼24.22 ▲0.0492.45 ▼1.7339.58 ▼5.91
Igemutató /wp-admin/options-general.php?page=igemutato-options1,0022.0023.8029.89

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts

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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/igemutato/igemutato.php:26
    • > PHP Fatal error
      Uncaught Error: Class 'Igemutato' not found in wp-content/plugins/igemutato/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: biblia, tooltip, bible, szentrs

igemutato/igemutato.php Passed 13 tests

The main PHP script in "Igemutató" version 1.6 is automatically included on every request by WordPress
105 characters long description:
Az oldal tartalmában található szentírási hivatkozásokat jeleníti meg felugró szövegbuborékban.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected153 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP22059151
CSS1001
JavaScript1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
PNG images were not found in this plugin