83% rs-525icons

Code Review | RS 525icons

WordPress plugin RS 525icons scored 83% from 54 tests.

About plugin

  • Plugin page: rs-525icons
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-5.8.3
  • WordPress version: 5.9.2
  • First release: Dec 9, 2016
  • Latest release: Jan 10, 2022
  • Number of updates: 48
  • Update frequency: every 38.6 days
  • Top authors: runestro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,438 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼2.50MB] [CPU: ▼348.19ms] Passed 4 tests

A check of server-side resources used by RS 525icons
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /1.87 ▼1.655.07 ▼46.07
Dashboard /wp-admin1.89 ▼1.523.54 ▼30.32
Posts /wp-admin/edit.php1.89 ▼1.754.08 ▼33.50
Add New Post /wp-admin/post-new.php1.89 ▼5.084.72 ▼1,282.86
Media Library /wp-admin/upload.php1.89 ▼1.416.98 ▼19.72

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for RS 525icons
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,780 ▲2616.25 ▲0.515.84 ▼0.362.36 ▼0.36
Dashboard /wp-admin2,901 ▲406.09 ▼0.11117.06 ▼17.74159.97 ▲0.51
Posts /wp-admin/edit.php2,697 ▲33.23 ▼0.0067.67 ▲2.88145.38 ▲1.38
Add New Post /wp-admin/post-new.php1,723 ▲5521.21 ▲2.25390.02 ▲10.65163.76 ▲6.10
Media Library /wp-admin/upload.php1,707 ▲95.55 ▲0.05140.55 ▼3.50185.27 ▼7.62

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
These items require your attention
  • This plugin cannot be uninstalled
    • > User notice in wp-includes/functions.php+5768
    wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the rs_525_cdn_icons handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_register_style() in wp-content/plugins/rs-525icons/525icons.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
  • Tags: There are too many tags (23 tag instead of maximum 10)
You can look at the official readme.txt

rs-525icons/525icons.php 85% from 13 tests

This is the main PHP file of "RS 525icons" version 2.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages")
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("rs-525icons.php" instead of "525icons.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 plugin944 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
CSS155915
PHP1143129

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
There were not PNG files found in your plugin