89% css-selectors

Code Review | CSS Selectors

WordPress plugin CSS Selectors scored89%from 54 tests.

About plugin

  • Plugin page: css-selectors
  • Plugin version: 0.0.3
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-6.4
  • WordPress version: 6.3.1
  • First release: Jul 21, 2021
  • Latest release: Nov 1, 2023
  • Number of updates: 15
  • Update frequency: every 55.5 days
  • Top authors: giuse (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /860 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.00MB] [CPU: ▼5.15ms] Passed 4 tests

An overview of server-side resources used by CSS Selectors
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0139.59 ▼1.14
Dashboard /wp-admin3.32 ▼0.0355.97 ▼9.53
Posts /wp-admin/edit.php3.37 ▲0.0148.16 ▼4.02
Add New Post /wp-admin/post-new.php5.90 ▲0.0186.19 ▼5.92
Media Library /wp-admin/upload.php3.24 ▲0.0135.59 ▲1.44

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for CSS Selectors
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲4314.72 ▲0.451.85 ▲0.0845.03 ▼2.03
Dashboard /wp-admin2,195 ▲215.62 ▼0.0691.96 ▼6.1342.50 ▼0.40
Posts /wp-admin/edit.php2,100 ▼32.04 ▲0.0236.20 ▲0.3239.61 ▲3.69
Add New Post /wp-admin/post-new.php1,528 ▼423.17 ▲0.19653.78 ▼22.4852.51 ▲6.50
Media Library /wp-admin/upload.php1,397 ▼04.34 ▲0.1197.50 ▼32.6242.49 ▼10.01

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • 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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: style, css selectors, css

css-selectors/css-selectors.php 85% from 13 tests

The main PHP script in "CSS Selectors" version 0.0.3 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path folder does not exist ("/languages/")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin53 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP242053

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.46
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%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin