83% remove-all-question-marks

Code Review | remove all question marks css and js from the head

WordPress plugin remove all question marks css and js from the head scored83%from 54 tests.

About plugin

  • Plugin page: remove-all-questi...
  • Plugin version: 3.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Nov 16, 2018
  • Latest release: Mar 5, 2023
  • Number of updates: 26
  • Update frequency: every 61.5 days
  • Top authors: ariapadweb (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /691 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.83ms] Passed 4 tests

Server-side resources used by remove all question marks css and js from the head
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0237.15 ▲0.83
Dashboard /wp-admin3.33 ▲0.0344.64 ▼0.75
Posts /wp-admin/edit.php3.38 ▲0.0245.25 ▼3.19
Add New Post /wp-admin/post-new.php5.91 ▲0.0280.73 ▼20.20
Media Library /wp-admin/upload.php3.25 ▲0.0245.61 ▲13.54
Remove all Question Marks /wp-admin/options-general.php?page=raqm-settings3.2231.34

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for remove all question marks css and js from the head
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.21 ▼1.171.68 ▼0.2641.14 ▼0.28
Dashboard /wp-admin2,207 ▲165.79 ▲0.89103.31 ▼9.8540.92 ▼16.41
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0632.45 ▼2.5834.07 ▲0.41
Add New Post /wp-admin/post-new.php1,517 ▼1617.64 ▼5.61612.48 ▼55.1249.27 ▼7.45
Media Library /wp-admin/upload.php1,395 ▲44.22 ▼0.0198.53 ▲2.4044.51 ▼1.49
Remove all Question Marks /wp-admin/options-general.php?page=raqm-settings8642.0222.0525.64

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/remove-all-question-marks/remove-all-question-marks-css-and-js.php:22

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention: You can take inspiration from this readme.txt

remove-all-question-marks/remove-all-question-marks-css-and-js.php 92% from 13 tests

The principal PHP file in "remove all question marks css and js from the head" v. 3.1 is loaded by WordPress automatically on each request
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("remove-all-question-marks.php" instead of "remove-all-question-marks-css-and-js.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin98 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1121798

PHP code Passed 2 tests

This is a short overview 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.16
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin