89% roundit

Code Review | RoundIt plugin

WordPress plugin RoundIt plugin scored 89% from 54 tests.

About plugin

  • Plugin page: roundit
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 5.8.1
  • First release: Sep 25, 2013
  • Latest release: Sep 25, 2013
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: AspireSolution (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

500+ active / 8,806 total downloads

Benchmarks

Plugin footprint Passed 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.00MB] [CPU: ▼143.22ms] Passed 4 tests

Analyzing server-side resources used by RoundIt plugin
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1234.09 ▲8.65
Dashboard /wp-admin3.06 ▲0.0146.38 ▲1.63
Posts /wp-admin/edit.php3.11 ▼0.0044.52 ▼10.44
Add New Post /wp-admin/post-new.php5.42 ▼0.0185.98 ▼565.27
Media Library /wp-admin/upload.php3.01 ▲0.0035.52 ▲1.22

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for RoundIt plugin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,679 ▲4215.92 ▲0.389.09 ▼0.3650.52 ▼1.15
Dashboard /wp-admin2,967 ▲365.93 ▲0.02139.66 ▼8.03114.42 ▼1.61
Posts /wp-admin/edit.php2,739 ▲32.69 ▼0.0065.89 ▼5.2280.73 ▼7.41
Add New Post /wp-admin/post-new.php1,672 ▼018.86 ▼0.29375.68 ▲1.05109.97 ▲2.53
Media Library /wp-admin/upload.php1,807 ▼34.98 ▼0.06153.60 ▼4.92133.01 ▲10.86

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The plugin uninstalled completely, with no zombie files or tables

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 0% 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 fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/roundit/pie/PIE.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/roundit/roundit.php:78

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 Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: image effects, rounded corners, image border, round images, image shadow

roundit/roundit.php Passed 13 tests

The main PHP script in "RoundIt plugin" version 1.0 is automatically included on every request by WordPress
96 characters long description:
This plugins allows to easily add roundness to your wordpress images alongwith border and shadow

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin87 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2285087

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.30
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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