68% wp-country-class-in-body-tag

Code Review | WP Country Class In Body Tag

WordPress plugin WP Country Class In Body Tag scored68%from 54 tests.

About plugin

  • Plugin page: wp-country-class-...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.1-4.9.5
  • WordPress version: 6.3.1
  • First release: May 14, 2018
  • Latest release: May 15, 2018
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: kashanshah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /3,252 total downloads

Benchmarks

Plugin footprint 65% 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.95MB] [CPU: ▼39.07ms] Passed 4 tests

This is a short check of server-side resources used by WP Country Class In Body Tag
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.38 ▼0.0826.90 ▼17.73
Dashboard /wp-admin2.99 ▼0.3122.11 ▼31.39
Posts /wp-admin/edit.php2.99 ▼0.3624.25 ▼29.05
Add New Post /wp-admin/post-new.php2.99 ▼2.8925.24 ▼78.10
Media Library /wp-admin/upload.php2.99 ▼0.2325.65 ▼11.05
WP Country Class In Body Tag /wp-admin/options-general.php?page=wp-country-class-in-body-tag2.9923.12

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for WP Country Class In Body Tag
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲4814.76 ▲0.171.82 ▼0.0338.59 ▼2.97
Dashboard /wp-admin2,210 ▲255.79 ▲0.9096.55 ▼8.0939.89 ▼2.85
Posts /wp-admin/edit.php2,096 ▲72.06 ▼0.0040.48 ▼0.3734.81 ▲0.17
Add New Post /wp-admin/post-new.php1,536 ▲323.53 ▲0.35597.42 ▼24.0056.83 ▲6.34
Media Library /wp-admin/upload.php1,395 ▲74.25 ▲0.0396.06 ▼15.9543.53 ▼2.26
WP Country Class In Body Tag /wp-admin/options-general.php?page=wp-country-class-in-body-tag8222.0326.6737.98

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=wp-country-class-in-body-tag
    • > User deprecated in wp-includes/functions.php+5737
    Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.

SRP 50% 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
The following issues need your attention
  • 2× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-country-class-in-body-tag/wp-countryclass.php:17
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/wp-country-class-in-body-tag/admin_view.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: developers, body tag, country names

wp-country-class-in-body-tag/wp-countryclass.php 85% from 13 tests

The principal PHP file in "WP Country Class In Body Tag" v. 1.0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wp-country-class-in-body-tag.php" instead of "wp-countryclass.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 226 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin137 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP381595
Markdown115042

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin