84% mpress-hide-from-search

Code Review | Hide from Search

WordPress plugin Hide from Search scored84%from 54 tests.

About plugin

  • Plugin page: mpress-hide-from-...
  • Plugin version: 1.1.6
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.2
  • WordPress version: 6.3.1
  • First release: Aug 27, 2012
  • Latest release: Jun 16, 2023
  • Number of updates: 34
  • Update frequency: every 116.0 days
  • Top authors: wpscholar (52.94%)woodent (50%)

Code review

54 tests

User reviews

15 reviews

Install metrics

3,000+ active /31,951 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.16MB] [CPU: ▼5.01ms] Passed 4 tests

Analyzing server-side resources used by Hide from Search
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1338.27 ▼1.51
Dashboard /wp-admin3.52 ▲0.2247.00 ▼3.31
Posts /wp-admin/edit.php3.57 ▲0.2149.79 ▲3.12
Add New Post /wp-admin/post-new.php6.04 ▲0.1687.76 ▼14.78
Media Library /wp-admin/upload.php3.38 ▲0.1536.87 ▼0.42

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Hide from Search
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.68 ▲0.321.72 ▼0.1042.28 ▲1.69
Dashboard /wp-admin2,189 ▲125.52 ▼0.1485.65 ▼3.2140.00 ▲3.97
Posts /wp-admin/edit.php2,100 ▼02.00 ▲0.0235.27 ▼5.2031.37 ▼5.58
Add New Post /wp-admin/post-new.php6,234 ▲4,69920.85 ▲2.74843.40 ▲207.4896.41 ▲15.53
Media Library /wp-admin/upload.php1,394 ▼64.17 ▼0.0596.44 ▼37.8241.74 ▼7.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • hide_from_search_plugin_version

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for 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
The following issues need your attention
  • 8× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/mpress-hide-from-search/vendor/psr/container/src/NotFoundExceptionInterface.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/mpress-hide-from-search/vendor/wp-forge/container/includes/ContainerException.php:13
    • > PHP Fatal error
      Uncaught Error: Interface 'WP_Forge\\Container\\ContainerExceptionInterface' not found in wp-content/plugins/mpress-hide-from-search/vendor/wp-forge/container/includes/NotFoundExceptionInterface.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Container\otFoundExceptionInterface' not found in wp-content/plugins/mpress-hide-from-search/vendor/wp-forge/container/includes/NotFoundException.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Forge\\Container\\Container' not found in wp-content/plugins/mpress-hide-from-search/includes/Plugin.php:159
    • > PHP Fatal error
      Uncaught Error: Call to a member function query() on null in wp-content/plugins/mpress-hide-from-search/upgrades/1.1.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'WP_Forge\\Container\\ContainerInterface' not found in wp-content/plugins/mpress-hide-from-search/vendor/wp-forge/container/includes/Container.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function HideFromSearch\\get_option() in wp-content/plugins/mpress-hide-from-search/includes/Plugin.php:161

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
7 plugin tags: search, wordpress search, hide post, exclude from search, hide from search...

mpress-hide-from-search/mpress-hide-from-search.php Passed 13 tests

The main file in "Hide from Search" v. 1.1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
84 characters long description:
Hide individual WordPress pages from search engines and/or WordPress search results.

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
Everything looks great! No dangerous files found in this plugin1,245 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
PHP243059621,195
JavaScript24147
Bourne Shell1103

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity9.53
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.48
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces6
Interfaces6
Traits0
Classes11
▷ Abstract classes00.00%
▷ Concrete classes11100.00%
▷ Final classes00.00%
Methods101
▷ Static methods3231.68%
▷ Public methods9796.04%
▷ Protected methods10.99%
▷ Private methods32.97%
Functions10
▷ Named functions00.00%
▷ Anonymous functions10100.00%
Constants2
▷ Global constants2100.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
No PNG files were detected