89% roman-rivera-business-consulting

Code Review | Roman Rivera Business Consulting

WordPress plugin Roman Rivera Business Consulting scored 89% from 54 tests.

About plugin

  • Plugin page: roman-rivera-busi...
  • Plugin version: 1.0.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5.3-5.7
  • WordPress version: 6.3.1
  • First release: Jul 9, 2021
  • Latest release: Jul 28, 2021
  • Number of updates: 7
  • Update frequency: every 6.1 days
  • Top authors: romanknoxmarketing (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 305 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼5.57ms] Passed 4 tests

This is a short check of server-side resources used by Roman Rivera Business Consulting
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0437.19 ▼5.88
Dashboard /wp-admin3.34 ▲0.0345.73 ▼14.02
Posts /wp-admin/edit.php3.39 ▲0.0350.15 ▲4.54
Add New Post /wp-admin/post-new.php5.92 ▲0.0394.82 ▼0.38
Media Library /wp-admin/upload.php3.26 ▲0.0335.54 ▼1.99
Add New /wp-admin/post-new.php?post_type=romanrivera-cpt3.3751.73
Hello, World! /wp-admin/edit.php?post_type=romanrivera-cpt3.3036.64

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

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

Browser metrics Passed 4 tests

Roman Rivera Business Consulting: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,848 ▲11313.16 ▼1.501.50 ▼0.3237.30 ▼5.65
Dashboard /wp-admin2,247 ▲594.82 ▼0.25109.51 ▼6.1942.72 ▼1.02
Posts /wp-admin/edit.php2,133 ▲442.02 ▼0.0039.03 ▲3.9334.87 ▼0.70
Add New Post /wp-admin/post-new.php1,574 ▲6018.31 ▲0.42621.05 ▼65.9762.77 ▲3.45
Media Library /wp-admin/upload.php1,429 ▲414.22 ▲0.0396.31 ▼17.2542.50 ▼6.16
Add New /wp-admin/post-new.php?post_type=romanrivera-cpt2,1787.74175.0163.40
Hello, World! /wp-admin/edit.php?post_type=romanrivera-cpt1,0941.9929.6529.52

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Screenshots: Add images for these screenshots: #1 (Bulk SMS Messaging), #2 (Plugin's main menu page)
Please take inspiration from this readme.txt

roman-rivera-business-consulting/roman-rivera-business-consulting.php 92% from 13 tests

This is the main PHP file of "Roman Rivera Business Consulting" version 1.0.1, 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 points to an invalid folder, "/languages" does not exist

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected62 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP3265862

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.14
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.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
2 PNG files occupy 0.13MB with 0.07MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png64.81KB25.88KB▼ 60.07%
screenshot-1.png71.79KB36.77KB▼ 48.78%