84% wp-iconics

Code Review | WP-Iconics

WordPress plugin WP-Iconics scored84%from 54 tests.

About plugin

  • Plugin page: wp-iconics
  • Plugin version: 0.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Mar 15, 2017
  • Latest release: Mar 19, 2017
  • Number of updates: 12
  • Update frequency: every 0.1 days
  • Top authors: mrx3k1 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /971 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.15MB] [CPU: ▼7.54ms] Passed 4 tests

Analyzing server-side resources used by WP-Iconics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.63 ▲0.1735.54 ▼6.73
Dashboard /wp-admin3.46 ▲0.1245.73 ▼15.18
Posts /wp-admin/edit.php3.51 ▲0.1646.25 ▲3.36
Add New Post /wp-admin/post-new.php6.04 ▲0.1692.64 ▼9.98
Media Library /wp-admin/upload.php3.39 ▲0.1635.54 ▲1.73

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WP-Iconics
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.34 ▼0.922.16 ▲0.4839.90 ▼3.32
Dashboard /wp-admin2,200 ▲155.82 ▼0.03107.85 ▲5.7137.57 ▼1.35
Posts /wp-admin/edit.php2,089 ▼02.11 ▲0.0939.81 ▲4.7936.32 ▼2.58
Add New Post /wp-admin/post-new.php1,523 ▲323.43 ▲0.23641.80 ▲0.7255.92 ▲3.34
Media Library /wp-admin/upload.php1,391 ▼04.39 ▲0.2299.21 ▼0.1844.58 ▼0.39

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-iconics/wp-iconics.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
5 plugin tags: material-design, icon, icons, image, resources

wp-iconics/wp-iconics.php Passed 13 tests

The entry point to "WP-Iconics" version 0.0.4 is a PHP file that has certain tags in its header comment area
51 characters long description:
1,800 font-icons easily accessible via short codes.

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
Success! There were no dangerous files found in this plugin5,567 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
SVG1005,520
PHP2255742
CSS32103
JavaScript2002

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions5
▷ Named functions240.00%
▷ Anonymous functions360.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin