10% archive-pages-in-search-lite

Code Review | Archive Pages in Search Lite

WordPress plugin Archive Pages in Search Lite scored10%from 54 tests.

About plugin

  • Plugin page: archive-pages-in-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-5.9.3
  • WordPress version: 6.3.1
  • First release: Aug 30, 2019
  • Latest release: May 6, 2022
  • Number of updates: 11
  • Update frequency: every 89.2 days
  • Top authors: mkhaledche (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,177 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
  • Install procedure had errors
    • > User deprecated in wp-includes/functions.php+5737
    Function WP_User_Query was called with an argument that is deprecated since version 5.9.0! who is deprecated. Use capability instead.

Server metrics [RAM: ▲0.01MB] [CPU: ▼9.26ms] Passed 4 tests

This is a short check of server-side resources used by Archive Pages in Search Lite
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.42 ▼6.11
Dashboard /wp-admin3.32 ▲0.0247.41 ▼9.48
Posts /wp-admin/edit.php3.37 ▲0.0148.61 ▼2.12
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.92 ▼19.31
Media Library /wp-admin/upload.php3.24 ▲0.0137.53 ▼1.89
Archive Pages in Search Lite /wp-admin/options-general.php?page=mkapis-lite-main3.2135.63

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Archive Pages in Search Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.20 ▼0.471.85 ▲0.1346.05 ▲0.11
Dashboard /wp-admin2,196 ▲195.57 ▼0.1185.94 ▼5.8440.67 ▼4.34
Posts /wp-admin/edit.php2,104 ▲42.01 ▼0.0436.74 ▲0.1536.59 ▼0.28
Add New Post /wp-admin/post-new.php1,534 ▲823.19 ▲5.49627.32 ▼47.7066.47 ▲11.06
Media Library /wp-admin/upload.php1,404 ▲14.24 ▲0.0198.73 ▼7.8642.66 ▼0.23
Archive Pages in Search Lite /wp-admin/options-general.php?page=mkapis-lite-main9062.1424.4160.57

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
You still need to fix the following
  • This plugin does not fully uninstall, leaving 8 options in the database
    • mkapis_lite_settings_options
    • mkapis_lite_archive_names
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 3× 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/archive-pages-in-search-lite/inc/appearance-settings.php:72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/archive-pages-in-search-lite/inc/common.php:48
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/archive-pages-in-search-lite/inc/mkapis-settings.php:14

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 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Donate link: Please fix this invalid URI: ""
Please take inspiration from this readme.txt

archive-pages-in-search-lite/archive-pages-in-search-lite.php 85% from 13 tests

Analyzing the main PHP file in "Archive Pages in Search Lite" version 1.0.0
The following require your attention:
  • Domain Path: Prefix the domain path with a forward slash character ("/languages")
  • Domain Path: The domain path should use only dashes and lowercase characters ("languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin522 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP6154122294
CSS104228

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
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%
Functions18
▷ Named functions18100.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