83% rougeo-connect

Code Review | Rougeo Connect

WordPress plugin Rougeo Connect scored83%from 54 tests.

About plugin

  • Plugin page: rougeo-connect
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Nov 12, 2015
  • Latest release: Nov 12, 2015
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: nmthomas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /506 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
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by Rougeo Connect
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.12 ▲1.33
Dashboard /wp-admin3.32 ▲0.0149.83 ▼2.28
Posts /wp-admin/edit.php3.37 ▲0.0149.65 ▼1.14
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.15 ▼10.51
Media Library /wp-admin/upload.php3.24 ▲0.0137.50 ▼0.36
Rougeo Connect /wp-admin/options-general.php?page=rougeo-connect3.2131.65

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Rougeo Connect
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.221.80 ▼0.0143.73 ▼1.25
Dashboard /wp-admin2,199 ▲225.63 ▲0.0695.38 ▲3.2045.68 ▲6.29
Posts /wp-admin/edit.php2,101 ▼22.03 ▲0.0136.09 ▼4.6336.21 ▼4.00
Add New Post /wp-admin/post-new.php1,529 ▲323.66 ▲0.51657.01 ▼33.7655.20 ▲1.79
Media Library /wp-admin/upload.php1,398 ▼24.16 ▼0.0796.25 ▼26.4644.90 ▼4.25
Rougeo Connect /wp-admin/options-general.php?page=rougeo-connect8221.9825.0027.93

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rougeo-connect/rougeo-connect.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 81% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed:
  • Screenshots: Please describe screenshot #0 in rougeo-connect/assets to your readme.txt
  • Requires at least: Version format is invalid
  • Screenshots: Please add an image for screenshot #1 (Feed demonstrated on our own website.)
You can look at the official readme.txt

rougeo-connect/rougeo-connect.php Passed 13 tests

This is the main PHP file of "Rougeo Connect" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
34 characters long description:
Show Rougeo trails on your website

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin200 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP15511200

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
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%
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin