10% igreen-google-page-rank

Code Review | Igreen Google Page Rank

WordPress plugin Igreen Google Page Rank scored10%from 54 tests.

About plugin

  • Plugin page: igreen-google-pag...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.0
  • WordPress version: 6.3.1
  • First release: May 20, 2013
  • Latest release: May 20, 2013
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: susheelhbti (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,285 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
  • This plugin did not install gracefully
    • > Deprecated in wp-content/plugins/igreen-google-page-rank/index.php+127
    Function create_function() is deprecated

Server metrics [RAM: ▼1.96MB] [CPU: ▼52.71ms] Passed 4 tests

A check of server-side resources used by Igreen Google Page Rank
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.433.69 ▼38.76
Dashboard /wp-admin2.05 ▼1.268.33 ▼47.93
Posts /wp-admin/edit.php2.05 ▼1.316.69 ▼41.55
Add New Post /wp-admin/post-new.php2.05 ▼3.847.00 ▼82.58
Media Library /wp-admin/upload.php2.05 ▼1.185.07 ▼24.24

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_igreen_page_rank_widget

Browser metrics Passed 4 tests

A check of browser resources used by Igreen Google Page Rank
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.33 ▼1.101.71 ▼0.0141.14 ▼8.87
Dashboard /wp-admin2,203 ▲125.79 ▲0.9097.16 ▼8.6839.24 ▼4.80
Posts /wp-admin/edit.php2,092 ▼02.06 ▲0.0541.69 ▲4.0634.40 ▼0.01
Add New Post /wp-admin/post-new.php1,534 ▲1223.16 ▼0.10672.46 ▲45.6257.11 ▼1.24
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.0499.58 ▲5.2943.63 ▲2.19

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/igreen-google-page-rank/index.php+127
    Function create_function() is deprecated
  • This plugin does not fully uninstall, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_igreen_page_rank_widget
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/igreen-google-page-rank/index.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
4 plugin tags: seo, googlerank, page rank widgets, google page rank

igreen-google-page-rank/index.php 92% from 13 tests

The entry point to "Igreen Google Page Rank" version 1.0 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("igreen-google-page-rank.php" instead of "index.php")

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
Success! There were no dangerous files found in this plugin124 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP14140124

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity6.50
▷ Minimum class complexity3.00
▷ Maximum class complexity10.00
Average method complexity2.38
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
There were not PNG files found in your plugin