84% devgirl-reviews-slider

Code Review | Devgirl Reviews Slider

WordPress plugin Devgirl Reviews Slider scored84%from 54 tests.

About plugin

  • Plugin page: devgirl-reviews-s...
  • Plugin version: 1.0
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8.1-6.1.1
  • WordPress version: 6.3.1
  • First release: Feb 4, 2023
  • Latest release: Feb 4, 2023
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: elfynity5 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /341 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.62ms] Passed 4 tests

An overview of server-side resources used by Devgirl Reviews Slider
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0439.32 ▼3.73
Dashboard /wp-admin3.35 ▲0.0447.37 ▼3.78
Posts /wp-admin/edit.php3.40 ▲0.0445.61 ▲0.90
Add New Post /wp-admin/post-new.php5.93 ▲0.0491.00 ▼5.59
Media Library /wp-admin/upload.php3.27 ▲0.0435.39 ▼1.38
Devgirl Reviews Slider /wp-admin/options-general.php?page=devgirl-reviews-slider3.2329.74

Server storage [IO: ▲0.02MB] [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: 6 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Devgirl Reviews Slider
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲7513.40 ▼0.911.61 ▼0.1942.64 ▼7.13
Dashboard /wp-admin2,209 ▲215.86 ▲0.95106.51 ▼4.3540.74 ▼2.52
Posts /wp-admin/edit.php2,092 ▲32.05 ▲0.0035.42 ▼0.1734.89 ▼0.38
Add New Post /wp-admin/post-new.php1,547 ▲1418.50 ▼4.57647.70 ▼18.1669.58 ▲15.04
Media Library /wp-admin/upload.php1,394 ▲34.20 ▼0.02101.27 ▼3.8942.75 ▲0.51
Devgirl Reviews Slider /wp-admin/options-general.php?page=devgirl-reviews-slider8582.0525.3929.47

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • 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
Even though everything seems fine, this is not 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 fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/devgirl-reviews-slider/admin-menu.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/devgirl-reviews-slider/admin-menu.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: carousel, testimonials, slider, reviews

devgirl-reviews-slider/devgirl-reviews-slider.php Passed 13 tests

This is the main PHP file of "Devgirl Reviews Slider" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
39 characters long description:
A slider to show your customer reviews.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected418 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP222024232
CSS2552186

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity17.00
Average method complexity2.64
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There were not PNG files found in your plugin