83% ooyyo-car-search

Code Review | OOYYO Car Search

WordPress plugin OOYYO Car Search scored83%from 54 tests.

About plugin

  • Plugin page: ooyyo-car-search
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.8.2
  • WordPress version: 6.3.1
  • First release: Oct 26, 2017
  • Latest release: Oct 26, 2017
  • Number of updates: 5
  • Update frequency: every 1.4 days
  • Top authors: ooyyo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /664 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

An overview of server-side resources used by OOYYO Car Search
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0334.79 ▼6.27
Dashboard /wp-admin3.34 ▲0.0446.01 ▼8.89
Posts /wp-admin/edit.php3.39 ▲0.0354.19 ▲0.46
Add New Post /wp-admin/post-new.php5.92 ▲0.0383.72 ▼8.43
Media Library /wp-admin/upload.php3.26 ▲0.0334.67 ▼3.23

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_ooyyo_widget
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for OOYYO Car Search
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.77 ▲0.022.12 ▼0.0941.87 ▲1.27
Dashboard /wp-admin2,198 ▲185.64 ▼0.1196.34 ▲5.3344.35 ▲1.12
Posts /wp-admin/edit.php2,097 ▼61.99 ▼0.0635.63 ▼6.3332.58 ▼7.68
Add New Post /wp-admin/post-new.php1,545 ▲1923.19 ▲5.58658.41 ▼37.8556.69 ▼0.80
Media Library /wp-admin/upload.php1,403 ▲34.19 ▲0.06106.78 ▼10.3144.24 ▼4.11

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • widget_ooyyo_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ooyyo-car-search/OOYYO_Car_Search.php:9

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 90% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need your attention:
  • Requires php: Version format is invalid
  • Contributors: Plugin contributors not specified
Please take inspiration from this readme.txt

ooyyo-car-search/OOYYO_Car_Search.php 92% from 13 tests

The primary PHP file in "OOYYO Car Search" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("ooyyo-car-search.php" instead of "OOYYO_Car_Search.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin183 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1256183

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity23.00
▷ Minimum class complexity23.00
▷ Maximum class complexity23.00
Average method complexity3.75
▷ Minimum method complexity1.00
▷ Maximum method complexity10.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 functions00.00%
▷ Anonymous functions1100.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
There are no PNG files in this plugin