84% simplyconvert

Code Review | SimplyConvert

WordPress plugin SimplyConvert scored84%from 54 tests.

About plugin

  • Plugin page: simplyconvert
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-5.9
  • WordPress version: 6.3.1
  • First release: May 24, 2022
  • Latest release: May 24, 2022
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: jonahsc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /166 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼15.53ms] Passed 4 tests

Analyzing server-side resources used by SimplyConvert
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.38 ▼6.58
Dashboard /wp-admin3.32 ▼0.0347.62 ▼25.36
Posts /wp-admin/edit.php3.86 ▲0.5054.99 ▼1.62
Add New Post /wp-admin/post-new.php5.90 ▲0.0190.22 ▼24.71
Media Library /wp-admin/upload.php3.24 ▲0.0135.34 ▼5.47
SimplyConvert /wp-admin/tools.php?page=simplyconvert3.2130.57

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for SimplyConvert
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.48 ▲0.171.65 ▼0.3039.80 ▼24.18
Dashboard /wp-admin2,213 ▲346.08 ▲0.22109.29 ▼28.0742.35 ▼5.88
Posts /wp-admin/edit.php2,093 ▲12.03 ▲0.0340.28 ▼9.4636.53 ▼11.14
Add New Post /wp-admin/post-new.php1,550 ▲3118.29 ▼2.83615.96 ▼221.1363.41 ▼20.80
Media Library /wp-admin/upload.php1,395 ▲74.20 ▲0.0095.72 ▼35.1442.83 ▼2.40
SimplyConvert /wp-admin/tools.php?page=simplyconvert7902.1823.4428.68

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/simplyconvert/simplyconvert.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
  • Requires php: Version format is invalid
Please take inspiration from this readme.txt

simplyconvert/simplyconvert.php Passed 13 tests

Analyzing the main PHP file in "SimplyConvert" version 1.0
38 characters long description:
Easy install for SimplyConvert widgets

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
No dangerous file extensions were detected103 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1204099
JavaScript1004

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.11
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin